-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 877 Bytes
/
ci.yml
File metadata and controls
33 lines (29 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'codewars/purescript' }}
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
push: false
# Make the image available in next step
load: true
tags: ghcr.io/codewars/purescript:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Passing Example
run: bin/run passing
- name: Report Image Size
run: |
echo "## Image Size" >> $GITHUB_STEP_SUMMARY
docker image inspect --format '{{.Size}}' ghcr.io/codewars/purescript:latest | numfmt --to=si --suffix=B >> $GITHUB_STEP_SUMMARY