ci: 👷 add testing action

For now this actions is unused, because no test was written to the
monorepo yet.
This commit is contained in:
Guz013
2023-07-20 15:47:13 -03:00
parent 1a08c46f31
commit fcb786b6c1

51
.github/workflows/checks.yml vendored Normal file
View 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