File tree 3 files changed +32
-1
lines changed
3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
+ - test
6
7
pull_request :
7
8
8
9
jobs :
9
10
build :
10
11
runs-on : ubuntu-latest
11
- if : ${{ github.repository == 'codewars/factor' }}
12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
- uses : docker/setup-buildx-action@v2
27
27
- name : Run Passing Example
28
28
run : bin/run passing
29
29
30
+ - name : Report Postbuild Info
31
+ run : bin/info >> $GITHUB_STEP_SUMMARY
32
+
30
33
- name : Report Image Size
31
34
run : |
32
35
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