-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.43 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
50
51
52
53
54
55
name: Run tests
on:
workflow_dispatch:
push:
paths-ignore:
- "**.md"
branches:
- main
pull_request:
paths-ignore:
- "**.md"
env:
NPM_CONFIG_LOGLEVEL: verbose
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
julia-version: ["1.10", "1"]
os: [ubuntu-latest, windows-latest, macOS-latest]
outputs:
output_dir: ${{ steps.set_output_dir.outputs.output_dir }}
steps:
- uses: actions/checkout@v4
- name: Set output directory
id: set_output_dir
shell: bash
run: |
mkdir -p $HOME/output
echo "output_dir=$HOME/output" >> "$GITHUB_OUTPUT"
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
TEST_OUTPUT_DIR: ${{ steps.set_output_dir.outputs.output_dir }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: hanoi_${{ matrix.os }}_${{ matrix.julia_version }}.pdf
path: ${{ steps.set_output_dir.outputs.output_dir }}/hanoi.pdf