Skip to content

CI: pin GitHub Actions runners #68

CI: pin GitHub Actions runners

CI: pin GitHub Actions runners #68

Workflow file for this run

name: Check the Docker image on PR
on: pull_request
jobs:
build-docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
smoke-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Run Smoke Tests in Docker
run: bin/run-tests-in-docker.sh
test-all-exercises:
runs-on: ubuntu-22.04
steps:
- name: Checkout elm-test-runner
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Checkout elm repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
repository: exercism/elm
path: elm_repo
- name: Run tests on all exercises
run: bin/run-all-exercises-in-docker.sh elm_repo