Skip to content

Test ci

Test ci #3

Workflow file for this run

name: CI/CD
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '!*' # Do not execute on tags
paths:
- src/*
- yarn.lock
- .github/workflows/test.yml
pull_request:
jobs:
test:
name: Test/Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: corepack enable
- uses: actions/setup-node@master
with:
node-version: 22
- run: yarn install --immutable
- run: node build
- run: yarn test --run --coverage
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
lint:
name: Format/Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: corepack enable
- uses: actions/setup-node@master
with:
node-version: 22
- run: yarn install --immutable
- run: yarn prettier -w src
- run: yarn eslint src
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [test, lint]
steps:
- run: echo 'Deploy occurs'