Skip to content

Commit

Permalink
Commit changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngchongpeng committed Aug 18, 2024
1 parent 3b16e7d commit 5c6493b
Showing 1 changed file with 27 additions and 41 deletions.
68 changes: 27 additions & 41 deletions .github/workflows/ci.yml
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

0 comments on commit 5c6493b

Please sign in to comment.