From 9bb3ed6b4aaed4b27880b80e49a1613c201fe9db Mon Sep 17 00:00:00 2001 From: totto2727 Date: Sat, 17 Feb 2024 22:31:07 +0900 Subject: [PATCH] feat: add unit test workflow --- .github/workflows/unit-test.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/unit-test.yaml diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml new file mode 100644 index 000000000..696a089a2 --- /dev/null +++ b/.github/workflows/unit-test.yaml @@ -0,0 +1,30 @@ +name: Unit Test + +on: + workflow_dispatch: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + static-analytics: + runs-on: ubuntu-22.04 + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Packages Install + run: npm ci + + - name: Copy wrangler.toml + run: cp wrangler.example.toml wrangler.toml + + - name: Unit Test + run: npm run test