mirror of
https://github.com/thepeacockproject/StateMachineParser.git
synced 2026-11-22 05:03:05 -10:00
40 lines
652 B
YAML
40 lines
652 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone the repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 24
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Build Package
|
|
run: yarn build
|
|
|
|
- name: Run tests with coverage
|
|
run: yarn coverage
|
|
|
|
- uses: codecov/codecov-action@v4
|
|
with:
|
|
use_oidc: true
|
|
files: ./coverage/lcov.info
|