-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 912 Bytes
/
build.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build
on:
push:
branches: ['*']
pull_request:
permissions: {}
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21
- name: Extract Tag
id: extract_tag
uses: actions/github-script@v6
with:
script: |
const prefix = 'refs/tags/v';
const ref = context.ref;
return ref.startsWith(prefix) ? ref.substring(prefix.length) : '';
result-encoding: string
- name: Lint
run: nix develop --command make lint
- name: Check Format
run: nix develop --command make fmt-check
- name: Run Tests
run: nix develop --command make test
- name: Publish to JSR
run: nix develop --command deno publish