Skip to content

Fix docker cache

Fix docker cache #26

Workflow file for this run

name: Run automated tests
on:
workflow_dispatch:
push:
branches:
- main
- production
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
# Tests with a database
zorm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: docker cache
uses: actions/cache@v4
with:
path: /var/lib/docker/image
key: var-lib-docker
- run: >
docker compose
--project-directory .
--file github-actions/compose.yaml
run --rm --user root
zorm-test-github-actions
- name: prepare cache
if: always()
run: chmod 777 /var/lib/docker
# Tests without a database
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- run: gradle excel-read-named:test
- run: gradle zummon:jvmTest
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: ./frontend/package-lock.json
- run: npm install
working-directory: ./frontend
- run: npm run test
working-directory: ./frontend