feat: add github actions

This commit is contained in:
Sergey Krylov 2024-04-03 06:48:59 +03:00
parent 9252208b6c
commit 8f2596e25b

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