-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (65 loc) · 1.95 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: codedown-languages
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
name: ${{matrix.suite}}
runs-on: self-hosted
env:
TEST_ROOT: /home/tester/test_runs/${{github.repository}}_${{github.workflow}}_${{github.run_number}}
strategy:
fail-fast: false
matrix:
suite:
- bash
- clojure
- coq
- cpp
- go
- haskell
- julia
- octave
- postgres
- python
- r
- ruby
- rust
- sample-environments
- searchers
- zsh
- spellchecker
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build tests
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
cd tests
export NIX_PATH=nixpkgs=$(nix eval --raw .#nixpkgsPath.x86_64-linux)
export PATH=$(nix build --no-link .#stack.x86_64-linux --json | jq -r '.[0].outputs.out')/bin:$PATH
echo "Got path: $PATH"
stack build --nix --no-nix-pure
- name: Run tests
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
cd tests
export NIX_PATH=nixpkgs=$(nix eval --raw .#nixpkgsPath.x86_64-linux)
export PATH=$(nix build --no-link .#stack.x86_64-linux --json | jq -r '.[0].outputs.out')/bin:$PATH
stack run --nix --no-nix-pure -- \
--print-failures \
--fixed-root "$TEST_ROOT" \
--markdown-summary "$GITHUB_STEP_SUMMARY" --${{matrix.suite}}
- name: Upload test artifacts
if: ${{ always() }}
continue-on-error: true
run: |
if [[ -n "$TEST_ROOT" ]]; then
rsync \
-e "ssh -F /secrets/ci_ssh_config" \
-azW --progress --mkpath \
"$TEST_ROOT/" \
tester@desktop1:/home/tester/all_test_runs/${{github.repository}}_${{github.workflow}}_${{github.run_number}}/${{matrix.suite}}
fi