-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b16e7d
commit 5c6493b
Showing
1 changed file
with
27 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,42 @@ | ||
name: Continuous Integration Workflow | ||
name: Continuous integration workflow | ||
|
||
# This workflow is triggered whenever a new PR is created on the main branch | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'web/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'web/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./web | ||
|
||
jobs: | ||
|
||
# Run unit tests to make sure everything is 👍 | ||
test: | ||
name: 'Run unit tests' | ||
defaults: | ||
run: | ||
shell: bash | ||
# Define the working directory for all run steps in the workflow | ||
working-directory: ./web | ||
# Specify the OS we want the workflow to run on | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
# Define the steps for this job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: 'Checkout repository' | ||
|
||
- name: 'Install Dependencies' | ||
run: npm install | ||
|
||
- name: 'Run Tests' | ||
run: npm run test | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
# Run the linter to check for code style issues | ||
lint: | ||
name: 'Run linter' | ||
defaults: | ||
run: | ||
shell: bash | ||
# Define the working directory for all run steps in the workflow | ||
working-directory: ./web | ||
name: Run linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: 'Checkout repository' | ||
|
||
- name: 'Install Dependencies' | ||
run: npm install | ||
|
||
- name: 'Run Linter' | ||
run: npx standard -v | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run linter | ||
run: npx standard -v | ||
|