feat: add github actions
This commit is contained in:
parent
8db7a1d63c
commit
b7b77c2e80
31
.github/workflows/github-actions.yml
vendored
Normal file
31
.github/workflows/github-actions.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Test
|
||||||
|
run-name: ${{ github.actor }} 🚀
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Linting:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
- run: yarn --frozen-lockfile
|
||||||
|
- run: yarn lint
|
||||||
|
TypeChecking:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
- run: yarn --frozen-lockfile
|
||||||
|
- run: yarn typecheck
|
||||||
Loading…
x
Reference in New Issue
Block a user