Skip to content

Commit

Permalink
Update CI workflow to work with calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkula authored Feb 17, 2023
1 parent 87b76c8 commit 3acaafe
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run build and tests'
name: 'Run calculator build and tests'
on:
push:
workflow_dispatch:
Expand All @@ -15,13 +15,9 @@ jobs:
- name: Clone repository
uses: actions/checkout@v3
- name: Run Makefile
run: make
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: program
path: program
retention-days: 1
run: |-
cd calculator
make
test_setup:
runs-on: ubuntu-latest
outputs:
Expand All @@ -32,6 +28,7 @@ jobs:
- name: Get list of tests
id: get_list
run: |-
cd calculator
export TESTS_JSON=$(find ./tests -type f -exec test -x {} \; -print | jq -Rsc 'gsub("\\s*$";"") | split("\n") | sort')
echo "TESTS_JSON=$TESTS_JSON" >> $GITHUB_OUTPUT
test:
Expand All @@ -45,7 +42,9 @@ jobs:
- name: Clone repository
uses: actions/checkout@v3
- name: Run Makefile
run: make
run: |-
cd calculator
make
- name: Run test
run: |-
${{ matrix.test }} "$(pwd)"/program
${{ matrix.test }} "$(pwd)/program -q"

0 comments on commit 3acaafe

Please sign in to comment.