-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (48 loc) · 1.11 KB
/
gfmrun.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Test and Build
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*'
jobs:
test:
name: Test GFMRUN
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.10.x
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Setup ZSH
run: sudo apt-get install -y zsh
- name: Run Linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.0
- name: Run Test Suite
run: make all
- name: Build Binary
run: make build
- name: Create Release
id: create_release
if: startswith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
./gfmrun-linux-*
./gfmrun-darwin-*
./gfmrun-windows-*