-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (38 loc) · 979 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
41
42
43
44
45
46
47
48
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os:
- name: ubuntu-latest
- name: macos-latest
- name: windows-latest
runs-on: ${{ matrix.os.name }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "^1.17.8"
- name: Install V
uses: vlang/setup-v@v1
- name: Get go2v
uses: actions/checkout@v2
- name: Check GO env variables
run: go env && v -e 'import os; os.getenv("PATH").split(os.path_delimiter).map(dump(it))'
- name: Check code formatting
run: |
v fmt -diff .
v fmt -verify .
- name: Build go2v
run: v .
- name: Run tests
run: v -g test .
- name: Run complex tests
run: |
v run . complex_tests/esbuild/api_impl
v run . complex_tests/esbuild/resolver