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