-
Notifications
You must be signed in to change notification settings - Fork 1.6k
58 lines (55 loc) · 1.32 KB
/
go-tests-other-os.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: "Go: Run Tests - Other OS"
on:
pull_request:
paths:
- "go/**"
- "!go/ql/**" # don't run other-os if only ql/ files changed
- .github/workflows/go-tests-other-os.yml
- .github/actions/**
- codeql-workspace.yml
- MODULE.bazel
- .bazelrc
- misc/bazel/**
permissions:
contents: read
jobs:
test-mac:
name: Test MacOS
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run tests
uses: ./go/actions/test
test-win:
if: github.repository_owner == 'github'
name: Test Windows
runs-on: windows-latest-xl
steps:
- name: Check out code
uses: actions/checkout@v4
- name: dump env bash
shell: bash
run: |
export | grep PATH
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "~1.23.1"
cache: false
id: go
- name: dump env bash again
shell: bash
run: |
export | grep PATH
- name: test1
run: |
C:\npm\prefix\bazel version
- name: test2
run: |
C:\ProgramData\Chocolatey\bin\bazel.exe version
- name: test3
run: |
C:\npm\prefix\bazelisk version
- name: Run tests
uses: ./go/actions/test