-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (32 loc) · 925 Bytes
/
ci.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
name: ci
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.kind }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install deno
uses: denoland/setup-deno@v1
- name: Log versions
run: |
deno --version
- name: Run deno fmt
run: deno fmt --check
- name: Run deno lint
run: deno lint --unstable
- name: Run deno test
run: deno test -A --unstable --import-map=import_map.json
- name: Release
uses: softprops/action-gh-release@v1
if: |
startsWith(github.repository, 'justjavac') &&
startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true