From fcb786b6c1ee17a56fcc589afffec7ead1174dc3 Mon Sep 17 00:00:00 2001 From: Guz013 <43732358+Guz013@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:47:13 -0300 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20add=20testing=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For now this actions is unused, because no test was written to the monorepo yet. --- .github/workflows/checks.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..5fb796b --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,51 @@ +name: 🧪 Code checking + +on: + push: + branches: + - dev + - main + - changeset-release/main + pull_request: + branches: + - dev + - main + - changeset-release/main + types: + - opened + - synchronize + - reopened + +jobs: + linting: + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Setup environment + uses: ./.github/actions/pnpm-setup + + - name: Run ESLint + run: pnpm run lint + vitest: + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Setup environment + uses: ./.github/actions/pnpm-setup + + - name: Run Vitests + run: pnpm run test