Skip to content

Commit

Permalink
Add github workflows for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
kwokieee committed Sep 5, 2023
1 parent 695383f commit 045a54d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-frontend-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci-frontend-test

on:
pull_request:
push:
branches:
- master

jobs:
test:
name: Frontend Tests
runs-on: ubuntu-latest

strategy:
matrix:
commands: ['format:ci', 'lint:ci', build, test]

steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '18'
- name: Install frontend dependencies
run: cd frontend; yarn install --frozen-lockfile;
- name: Run frontend tests
run: cd frontend; yarn run ${{ matrix.commands }}

0 comments on commit 045a54d

Please sign in to comment.