Skip to content

Merge pull request #1138 from chromaui/cody/cap-2627-turbosnap-doesnt… #77

Merge pull request #1138 from chromaui/cody/cap-2627-turbosnap-doesnt…

Merge pull request #1138 from chromaui/cody/cap-2627-turbosnap-doesnt… #77

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
permissions:
contents: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: corepack enable
- name: install
run: yarn install --immutable
# check types and linting issues
- run: yarn typescript:check
- run: yarn lint
# test if dist is correctly generated from src
- run: yarn build && git status --porcelain
# unit test
- run: yarn test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}