Skip to content

Commit

Permalink
feat: add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
totto2727 committed Feb 21, 2024
1 parent 401a19c commit 9bb3ed6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9bb3ed6

Please sign in to comment.