-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.32 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
56
---
name: ShellCheck and Test
on:
push:
paths:
- 'denv'
- '_denv_entrypoint'
- 'install'
- 'uninstall'
- 'ci/test'
- 'ci/check'
workflow_dispatch:
pull_request:
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
run: ./ci/check
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runner: [docker, podman, singularity, apptainer]
# include:
# - os: macos-latest
# runner: docker
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: eWaterCycle/setup-singularity@v7
if: ${{matrix.runner == 'singularity'}}
with:
singularity-version: 3.8.3
- uses: eWaterCycle/setup-apptainer@v2
if: ${{matrix.runner == 'apptainer'}}
with:
apptainer-version: 1.1.9
- uses: douglascamata/setup-docker-macos-action@v1-alpha
if: ${{matrix.os == 'macos-latest'}}
- name: enable debug mode if requested
if: ${{runner.debug == '1'}}
run: echo "DENV_DEBUG=1" >> "$GITHUB_ENV"
- name: Install
run: sudo ./install
- name: Test
env:
DENV_RUNNER: ${{matrix.runner}}
run: ./ci/test