Skip to content

Commit

Permalink
48 create multiple jobs in git action workflow (#49)
Browse files Browse the repository at this point in the history
* chore: update gitignore file

* ci: improve github action workflow

* fix: 💚 fix workflow failing
  • Loading branch information
stromseng authored Jan 26, 2024
1 parent bf4de0c commit f3098de
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,39 @@ jobs:
- run: npm ci # Clean install packages
- run: npm run build # Build the frontend
- run: npm test --if-present # Run tests

lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci # Clean install packages
- run: npm run lint # Run linter

prettier:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci # Clean install packages
- run: npx prettier . --check # Run prettier

0 comments on commit f3098de

Please sign in to comment.