Merge pull request #736 from mafia-rust/generic_ability #1437
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: Client | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/client.yml' | |
- 'client/**' | |
- '!client/public/**' | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/client.yml' | |
- 'client/**' | |
- '!client/public/**' | |
- '!client/src/resources/**' | |
jobs: | |
build_client: | |
name: Build Client | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./client | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: npm install | |
- run: npm ci | |
- run: npm run build | |
- run: npm test --if-present |