Skip to content

feat(ci): adds more CI validations, introduces semantic release (#74) #31

feat(ci): adds more CI validations, introduces semantic release (#74)

feat(ci): adds more CI validations, introduces semantic release (#74) #31

Workflow file for this run

name: Test
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.0.0
cache: npm
- name: Restore node_modules cache
id: deps-cache
uses: martijnhols/actions-cache/restore@v3
with:
path: node_modules
key: ${{ runner.os }}-build-ts-deps-cache-${{ hashFiles('ts/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Test
run: npm run test:cov
- name: Upload Test Coverage
uses: codecov/codecov-action@v4
with:
files: ./ts/coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Cache node modules
if: steps.deps-cache.outputs.cache-hit != 'true'
uses: martijnhols/actions-cache/save@v3
with:
path: node_modules
key: ${{ runner.os }}-build-ts-deps-cache-${{ hashFiles('ts/package-lock.json') }}