Add the current version #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'codewars/factor' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- 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/factor: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/factor:latest | numfmt --to=si --suffix=B >> $GITHUB_STEP_SUMMARY |