mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
merge: Update workflow organization and environments (#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
This commit is contained in:
18
.github/workflows/Ci.yml
vendored
18
.github/workflows/Ci.yml
vendored
@ -1,9 +1,14 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Code style and tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -20,3 +25,14 @@ jobs:
|
||||
|
||||
- name: 💄 Code style
|
||||
run: npm run style
|
||||
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
with:
|
||||
# file types to ignore
|
||||
skip: "*.json,*.yml,DIRECTORY.md"
|
||||
ignore_words_list: "ba,esy,yse"
|
||||
|
13
.github/workflows/Codespell.yml
vendored
13
.github/workflows/Codespell.yml
vendored
@ -1,13 +0,0 @@
|
||||
name: codespell
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
with:
|
||||
# file types to ignore
|
||||
skip: "*.json,*.yml,DIRECTORY.md"
|
||||
ignore_words_list: "ba,esy,yse"
|
5
.github/workflows/UpdateDirectory.yml
vendored
5
.github/workflows/UpdateDirectory.yml
vendored
@ -1,7 +1,10 @@
|
||||
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
|
||||
name: Update Directory
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
updateDirectory:
|
||||
|
Reference in New Issue
Block a user