From b7b77c2e80bd604d55a4e26ee1d05e8d640d8a3e Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 3 Apr 2024 06:48:59 +0300 Subject: [PATCH] feat: add github actions --- .github/workflows/github-actions.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/github-actions.yml diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..b569ace --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -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