Skip to content

Commit 42b9f64

Browse files
authored
merge: Update workflow organization and environments (TheAlgorithms#971)
* chore: only run update directory on `master` * chore: move codespell to CI workflow * chore: remove codespell workflow(moved) * chore: listen for `push` only on `master` * chore: remove `pull_request` type params
1 parent 2be0fdc commit 42b9f64

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/workflows/Ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Continuous Integration
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
build:
11+
name: Code style and tests
712
runs-on: ubuntu-latest
813
steps:
914
- uses: actions/checkout@v2
@@ -20,3 +25,14 @@ jobs:
2025

2126
- name: 💄 Code style
2227
run: npm run style
28+
29+
codespell:
30+
name: Check for spelling errors
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: codespell-project/actions-codespell@master
35+
with:
36+
# file types to ignore
37+
skip: "*.json,*.yml,DIRECTORY.md"
38+
ignore_words_list: "ba,esy,yse"

.github/workflows/Codespell.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/UpdateDirectory.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
22
name: Update Directory
33

4-
on: [push]
4+
on:
5+
push:
6+
branches:
7+
- master
58

69
jobs:
710
updateDirectory:

0 commit comments

Comments
 (0)