Skip to content

Merge pull request #2268 from UKGovernmentBEIS/2997-the-filename-of-t… #7317

Merge pull request #2268 from UKGovernmentBEIS/2997-the-filename-of-t…

Merge pull request #2268 from UKGovernmentBEIS/2997-the-filename-of-t… #7317

Workflow file for this run

name: CI
on: [push]
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create coverage directory
run: mkdir -p ./coverage
- id: cache-docker
uses: actions/cache@v3
with:
path: /tmp/docker-save
key: docker-save-${{ hashFiles('Dockerfile', 'Gemfile.lock', 'yarn.lock') }}
- name: Load cached Docker image
run: docker load -i /tmp/docker-save/snapshot.tar || true
if: steps.cache-docker.outputs.cache-hit == 'true'
- name: Run tests
run: script/cibuild
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: ./coverage/lcov.info
fail-on-error: false
- name: Prepare Docker cache
run: mkdir -p /tmp/docker-save && docker save beis-report-official-development-assistance_test:latest -o /tmp/docker-save/snapshot.tar && ls -lh /tmp/docker-save
if: always() && steps.cache-docker.outputs.cache-hit != 'true'