From 28571813e90ac63d510c3a923c0f43967bd5860a Mon Sep 17 00:00:00 2001 From: Walaff Fernandes Date: Sun, 7 Jul 2024 14:37:32 -0300 Subject: [PATCH] chore: add GitHub Actions workflow for checks --- .github/workflows/checks.yaml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/checks.yaml diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml new file mode 100644 index 0000000..14b3cda --- /dev/null +++ b/.github/workflows/checks.yaml @@ -0,0 +1,44 @@ +name: checks +on: + - push + - pull_request +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install + - run: pnpm run test + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install + - run: pnpm run typecheck + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install + - run: pnpm run lint \ No newline at end of file