This repository was archived by the owner on Sep 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1111 uses : actions/checkout@v1
1212
1313 - name : Build Images & Run Queries
14- run : cd courses/cpp/ctf-segv/image && ./ test.sh
14+ run : cd courses/cpp/ctf-segv && ../../../scripts/ test-course .sh
1515 env :
1616 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Test that the queries in ../answers produce the expected results
3+ # Build the codeql-learninglab-check & course image, and run all queries in
4+ # the course to ensure the expected result
5+ #
6+ # Should be run with the cwd being the course folder
47
58set -e
69set -x
710
811TMP=$( mktemp -d -t ci-XXXXXXXXXX)
912# Extract the expected parent tag from course Dockerfile
10- PARENT_TAG=$( head -n 1 Dockerfile | awk -F ' ' ' {print $2}' )
13+ PARENT_TAG=$( head -n 1 image/ Dockerfile | awk -F ' ' ' {print $2}' )
1114TAG=ci-test
1215
1316# Build codeql-learninglab-check
14- docker build -t $PARENT_TAG ../../../../ codeql-learninglab-check
17+ docker build -t $PARENT_TAG ../../../codeql-learninglab-check
1518
1619# Build course image
17- docker build -t $TAG .
20+ docker build -t $TAG image
1821
1922# Prepare temporary folder to mount into docker
2023mkdir -p $TMP
21- cp -R ../ answers $TMP /answers
24+ cp -R answers $TMP /answers
2225echo " {}" > $TMP /event.json
2326
2427# Run docker image
You can’t perform that action at this time.
0 commit comments