This commit is contained in:
parent
40f4b1c672
commit
2a5676ed2c
@ -19,14 +19,15 @@ jobs:
|
|||||||
# this causes issues because nektos/act will not be able to find test-db:5432 but act_runner can.
|
# this causes issues because nektos/act will not be able to find test-db:5432 but act_runner can.
|
||||||
# this means we have inconsistent behavior across testing environments, which is bad.
|
# this means we have inconsistent behavior across testing environments, which is bad.
|
||||||
# our workaround is to use localhost on local dev, and the dns name on gitea act_runner.
|
# our workaround is to use localhost on local dev, and the dns name on gitea act_runner.
|
||||||
create_volumes:
|
# create_volumes:
|
||||||
name: Create Docker Volumes
|
# name: Create Docker Volumes
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
steps:
|
# steps:
|
||||||
- run: |
|
# - run: |
|
||||||
docker volume ls | grep -q aquatic || docker volume create aquatic
|
# docker volume ls | grep -q aquatic || docker volume create aquatic
|
||||||
|
|
||||||
test_phoenix:
|
test_phoenix:
|
||||||
|
name: Tests & Checks
|
||||||
env:
|
env:
|
||||||
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
|
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
@ -46,15 +47,14 @@ jobs:
|
|||||||
DB_PORT: ${{ vars.DB_PORT }}
|
DB_PORT: ${{ vars.DB_PORT }}
|
||||||
DB_USER: ${{ vars.DB_USER }}
|
DB_USER: ${{ vars.DB_USER }}
|
||||||
DB_PASS: ${{ secrets.DB_PASS }}
|
DB_PASS: ${{ secrets.DB_PASS }}
|
||||||
name: Tests & Checks
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container:
|
# container:
|
||||||
image: gitea/runner-images:ubuntu-22.04
|
# image: gitea/runner-images:ubuntu-22.04
|
||||||
volumes:
|
# volumes:
|
||||||
- aquatic:/var/lib/aquatic
|
# - aquatic:/var/lib/aquatic
|
||||||
- /tmp/aquatic:/tmp/aquatic
|
# - /tmp/aquatic:/tmp/aquatic
|
||||||
- /tmp/test:/root/test
|
# - /tmp/test:/root/test
|
||||||
- /test2:/root/test2
|
# - /test2:/root/test2
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
Loading…
x
Reference in New Issue
Block a user