-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.3 KB
/
test.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
name: Test gohere
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-11
python-version:
- 3.11.4
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install coreutils on iOS
if: matrix.os == 'macos-11'
run: |
brew install coreutils
echo "/usr/local/opt/coreutils/libexec/gnubin" >> $GITHUB_PATH
- name: Test default version
run: |
./gohere.py goroot
./goroot/bin/go version
./goroot/bin/go env
mkdir gopath
GOPATH=$(pwd)/gopath ./goroot/bin/go install -race github.com/starius/racesync@latest
./gopath/bin/racesync
- name: Test generation of scripts
run: |
./gohere.py --echo > run.sh
chmod +x run.sh
./run.sh goroot-echo
./goroot-echo/bin/go version
./goroot-echo/bin/go env
mkdir gopath-echo
GOPATH=$(pwd)/gopath-echo ./goroot-echo/bin/go install -race github.com/starius/racesync@latest
./gopath-echo/bin/racesync