-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 928 Bytes
/
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
name: Test
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: shellcheck
run: shellcheck *.sh **/*.sh
- name: build challenge
run: ./create_challenge.sh --verbose
- name: create tarball
# GitHub removes file permissions, but we need them to be there
# https://github.com/actions/upload-artifact/blob/cf8714cfeaba5687a442b9bcb85b29e23f468dfa/README.md#permission-loss
# Alternatively we could require the user to run a script that adds the permissions on first run, but that also feels broken...
run: tar -cvf challenge.tar ./challenge/
- name: upload challenge
uses: actions/upload-artifact@v4
with:
name: challenge
path: ./challenge.tar
if-no-files-found: error
- name: run tests
run: ./test.sh -v