ci: 👷 add testing action
For now this actions is unused, because no test was written to the monorepo yet.
This commit is contained in:
51
.github/workflows/checks.yml
vendored
Normal file
51
.github/workflows/checks.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: 🧪 Code checking
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
- changeset-release/main
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
- changeset-release/main
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
linting:
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Setup environment
|
||||
uses: ./.github/actions/pnpm-setup
|
||||
|
||||
- name: Run ESLint
|
||||
run: pnpm run lint
|
||||
vitest:
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Setup environment
|
||||
uses: ./.github/actions/pnpm-setup
|
||||
|
||||
- name: Run Vitests
|
||||
run: pnpm run test
|
||||
Reference in New Issue
Block a user