Skip to content

Commit

Permalink
Merge pull request #508 from IntersectMBO/feat/507/add-frontend-packa…
Browse files Browse the repository at this point in the history
…ge-unit-tests-to-github-workflow

[#507] feat: add frontend test github workflow
  • Loading branch information
MSzalowski authored Mar 19, 2024
2 parents 6eb66d1 + 4cda470 commit ffd1129
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_frontend.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 ffd1129

Please sign in to comment.