Frontend Pull Request Check #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Frontend Pull Request Check | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'frontend/**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Cd to the directory to test | |
working-directory: ./frontend/typescript | |
run: | | |
npm install | |
npm run pr-check |