aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/deno.yml
blob: 1ae1daa9411d233a915ac95de02156779b98fd41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deno

on:
  push:
    paths:
      - "src/packges/locusts/mod.ts"
      - "**/deno.json"
      - ".github/workflows/deno.yml"
  pull_request:
    paths:
      - "src/packges/locusts/mod.ts"
      - "**/deno.json"
      - ".github/workflows/deno.yml"

jobs:
  test-and-publish:
    name: Test
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Deno
        uses: denolib/setup-deno@v2
      - name: Test
        run: deno test src/packges/locusts/mod.ts
      - name: Publish on Tag
        run: deno run -A jsr:@david/publish-on-tag