File tree Expand file tree Collapse file tree 6 files changed +44
-1
lines changed Expand file tree Collapse file tree 6 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ if : ${{ github.repository == 'codewars/agda' }}
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - uses : docker/setup-buildx-action@v2
15
+
16
+ - name : Build image
17
+ uses : docker/build-push-action@v3
18
+ with :
19
+ context : .
20
+ push : false
21
+ # Make the image available in next step
22
+ load : true
23
+ tags : ghcr.io/codewars/agda:latest
24
+ cache-from : type=gha
25
+ cache-to : type=gha,mode=max
26
+
27
+ - name : Run Passing Example
28
+ run : bin/run passing
29
+ - name : Run Failing Example
30
+ run : bin/run failing | grep 'b != a of type A'
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ C=$(docker container create --rm -w $W ghcr.io/codewars/agda:latest agda --verbo
8
8
# Copy files from the current directory
9
9
# example/Example.agda
10
10
# example/ExampleTest.agda
11
- docker container cp example /. $C :$W
11
+ docker container cp examples/ ${1 :- passing} /. $C :$W
12
12
13
13
# Run tests
14
14
docker container start --attach $C
Original file line number Diff line number Diff line change
1
+ {-# OPTIONS --safe #-}
2
+ module Example where
3
+ open import Agda.Builtin.Equality
4
+
5
+ _⇆_ : {A : Set } {a : A} → a ≡ a → a ≡ a → a ≡ a
6
+ refl ⇆ refl = refl
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {-# OPTIONS --safe #-}
2
+ module ExampleTest where
3
+ open import Agda.Builtin.Equality
4
+ open import Example
5
+
6
+ check : {A : Set } {a b c : A} → a ≡ b → b ≡ c → a ≡ c
7
+ check = _⇆_
You can’t perform that action at this time.
0 commit comments