.github ignore test #28
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
# -------------------------------------------------------------------------------------------- | |
# This file is generated. Do not edit manually | |
# -------------------------------------------------------------------------------------------- | |
name: Run tests | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 22.x | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: git config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
- name: npm install | |
run: | | |
npm install | |
- name: Run Build | |
run: | | |
npm run build | |
- name: Run tests | |
run: | | |
npm run test:ci | |
- uses: tanmen/jest-reporter@v1 | |
if: always() | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
result-file: test-result.json | |
action-name: Test results |