Skip to content

Commit

Permalink
Simplify GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelim01 committed Sep 13, 2024
1 parent 7e1f596 commit 6b52f74
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,22 @@ env:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-frontend:
build-service:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
service: [frontend, services/question]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: Install Node Modules
run: cd frontend && npm ci
run: cd ${{ matrix.service }} && npm ci
- name: Linting
run: cd frontend && npm run lint
run: cd ${{ matrix.service }} && npm run lint
- name: Build App
run: cd frontend && npm run build

build-question:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: Install Node Modules
run: cd services/question && npm ci
- name: Linting
run: cd frontend && npm run lint
- name: Build App
run: cd services/question && npm run build
run: cd ${{ matrix.service }} && npm run build

0 comments on commit 6b52f74

Please sign in to comment.