Skip to content

chore: feature is not implemented yet (#11) #18

chore: feature is not implemented yet (#11)

chore: feature is not implemented yet (#11) #18

Workflow file for this run

name: Test Branch on Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- "**"
push:
branches:
- main
jobs:
test:
name: Run Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
id: cache
with:
path: |
${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: Setup SWC
run: npm install swc-loader
- run: npm test
- uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info