Skip to content

Commit

Permalink
Simplify testing workflow
Browse files Browse the repository at this point in the history
Now that this is the only one actually using this,
the whole complexity here is totally unnecessary
  • Loading branch information
Earlopain committed Jul 3, 2024
1 parent 29e680f commit 5018785
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
20 changes: 0 additions & 20 deletions .github/prepare-docker-image/action.yml

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ permissions:
contents: read

jobs:
docker-build:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -24,21 +25,20 @@ jobs:
with:
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
tags: reverser

tests:
runs-on: ubuntu-latest
needs: docker-build

steps:
- uses: actions/checkout@v4
- uses: ./.github/prepare-docker-image
- name: Set env file
run: |
cat <<EOT >> .env
REVERSER_DATA_PATH=${{ runner.temp }}/reverser
EOT
- name: Create DB
run: eval $DOCKER_RUN reverser bin/setup
run: docker compose run reverser bin/setup

- name: Run Tests
run: eval $DOCKER_RUN tests
run: docker compose run -e CI=1 tests

rubocop:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5018785

Please sign in to comment.