-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 918 Bytes
/
ci.yml
File metadata and controls
45 lines (40 loc) · 918 Bytes
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
# Copyright (C) 2025 Subhajit Sahu
# SPDX-License-Identifier: AGPL-3.0-or-later
# See LICENSE for full terms
name: CI
on:
push:
branches:
- main
- master
tags:
- '!*' # Do not execute on tags
env:
NAME: ${{vars.NAME}}
EMAIL: ${{vars.EMAIL}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
FORCE_COLOR: 1
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macOS-latest]
name: Test on ${{matrix.platform}}
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno test
publish:
name: Publish package
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- run: npx jsr publish