-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.41 KB
/
run-tests.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
name: Github Actions Tests
on:
workflow_call:
pull_request:
permissions:
contents: read
jobs:
detect-secrets:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Detect secrets
uses: alphagov/pay-ci/actions/detect-secrets@master
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: '0'
- name: Load pkl version
id: load-pkl-version
run: |
PKL_VERSION=$(cat .pkl-version)
echo "PKL_VERSION=${PKL_VERSION}" | tee -a "$GITHUB_OUTPUT"
- name: Install pkl
env:
PKL_VERSION: "${{ steps.load-pkl-version.outputs.PKL_VERSION }}"
run: |
curl -L -o pkl https://github.com/apple/pkl/releases/download/${PKL_VERSION}/pkl-linux-amd64
chmod u+x pkl
./pkl --version
- name: Validate Task Config
run: |
set -o pipefail
./pkl eval tests/task-config.pkl | diff tests/expected/task-config.yml -
- name: Validate Pipeline Config
run: |
set -o pipefail
./pkl eval tests/pipeline.pkl | diff tests/expected/pipeline.yml -
- name: Validate package can build
run: |
./pkl project package src/ --output-path build/