Skip to content

Commit e4022fd

Browse files
committed
add ci
1 parent 09aae1c commit e4022fd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: ${{ matrix.kind }} ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [macOS-latest, ubuntu-latest, windows-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Deno
16+
uses: denolib/setup-deno@master
17+
with:
18+
deno-version: 1.3
19+
20+
- name: Format
21+
run: deno fmt --check
22+
23+
- name: Lint
24+
run: deno lint --unstable
25+
26+
- name: Release
27+
uses: softprops/action-gh-release@v1
28+
if: |
29+
matrix.os == 'ubuntu-latest' &&
30+
startsWith(github.repository, 'justjavac') &&
31+
startsWith(github.ref, 'refs/tags/')
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
draft: true

0 commit comments

Comments
 (0)