-
Notifications
You must be signed in to change notification settings - Fork 55
46 lines (39 loc) · 1.08 KB
/
go-test.yml
File metadata and controls
46 lines (39 loc) · 1.08 KB
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
name: Go CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run go test
runs-on: ubuntu-latest
env:
# TestPatcher:
# absolute path in localsession.json
# TestCases:
# hardcoded obselete json
# Test_goParser_ParseNode:
# test tries to retrieve non-existent node
# TestParser_NodeFieldsConsistency:
# Vars.Content only includes name, not whole body
SKIPPED_TESTS: >-
TestPatcher|TestCases|Test_goParser_ParseNode|TestParser_NodeFieldsConsistency|TestRustLSP
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rust-analyzer
- name: Install gopls
run: go install golang.org/x/tools/gopls@latest
- name: Run all tests
run: go test ./lang/... -skip '${{ env.SKIPPED_TESTS }}'