File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed
Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6+ - test
67 pull_request :
78
89jobs :
910 build :
1011 runs-on : ubuntu-latest
11- if : ${{ github.repository == 'codewars/factor' }}
1212 steps :
1313 - uses : actions/checkout@v4
1414 - uses : docker/setup-buildx-action@v2
2727 - name : Run Passing Example
2828 run : bin/run passing
2929
30+ - name : Report Postbuild Info
31+ run : bin/info >> $GITHUB_STEP_SUMMARY
32+
3033 - name : Report Image Size
3134 run : |
3235 echo "## Image Size" >> $GITHUB_STEP_SUMMARY
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -eu
3+
4+ W=/workspace/
5+ # Create a container
6+ C=$( docker container create --rm -w $W ghcr.io/codewars/factor:latest factor -run=postbuild)
7+
8+ # Copy files from the current directory
9+ docker container cp info/. $C :$W
10+
11+ # Run tests
12+ docker container start --attach $C
Original file line number Diff line number Diff line change 1+ ! copyright 2024 nomennescio
2+ USING: accessors assocs compiler.errors io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors tools.errors ;
3+ IN: postbuild
4+
5+ : report-missing-libraries ( -- )
6+ linkage-errors get values [ error>> no-such-library? ] [ error>> name>> ] filter-map members
7+ [ "## Missing libraries" print
8+ [ print ] each
9+ ] unless-empty
10+ ;
11+
12+ : run ( -- )
13+ report-missing-libraries
14+ ;
15+
16+ MAIN: run
You can’t perform that action at this time.
0 commit comments