Skip to content

Commit

Permalink
[#500] feat: add frontend test github workflow
Browse files Browse the repository at this point in the history
Set up test_frontend workflow to dispatch automated tests on every pull request.
  • Loading branch information
MSzalowski committed Mar 19, 2024
1 parent 6eb66d1 commit 8dda8be
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test_frontentd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Frontend Test

on:
push:
paths:
- govtool/frontend/**
- .github/workflows/test_frontend.yml

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: govtool/frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"

- name: Run Frontend Test
working-directory: govtool/frontend
run: |
npm install
npm run test
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ changes.
- Add on-chain inputs validation [Issue 377](https://github.com/IntersectMBO/govtool/issues/377)
- Add hash and validation of the metadata [Issue 378](https://github.com/IntersectMBO/govtool/issues/378)
- Add githubusercontent.com and ipfs.io to content security policy header [Issue 451](https://github.com/IntersectMBO/govtool/issues/451)
- Add frontend test workflow on github actions [Issue 500](https://github.com/IntesectMBO/govtool/issues/500)

### Added

Expand Down

0 comments on commit 8dda8be

Please sign in to comment.