Skip to content

Commit

Permalink
ci: update tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswinger committed Sep 5, 2024
1 parent 66f7545 commit 0caf81e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
steps:
- uses: actions/checkout@master

- name: "Login to image registry"
- name: Login to image registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login $IMAGE_REGISTRY -u $GITHUB_ACTOR --password-stdin

- name: Build API image
Expand All @@ -64,21 +64,25 @@ jobs:
steps:
- uses: actions/checkout@master

- name: "Login to image registry"
- name: Login to image registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login $IMAGE_REGISTRY -u $GITHUB_ACTOR --password-stdin

- name: Build Web Image
run: |
docker pull $WEB_IMAGE
docker build --cache-from $WEB_IMAGE --target development --tag web-dev ./web
- name: Run Web tests
if: ${{ false }} # disable for now as they do not currently work
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm web yarn test

test-docs:
name: test-docs
runs-on: ubuntu-latest

steps:
# If you know your docs does not rely on anything outside of the documentation folder, the commented out code below can be used to only test the docs build if the documentation folder changes.
- name: "Checkout GitHub Action"
- name: Checkout GitHub Action
uses: actions/checkout@main
# with:
# fetch-depth: 0
Expand All @@ -88,7 +92,7 @@ jobs:
# shell: bash
# run: echo "changes=$(git diff --name-only $(git merge-base HEAD origin/main) HEAD | grep documentation/ | wc -l)" >> $GITHUB_OUTPUT

- name: "Setup node"
- name: Setup node
# if: steps.docs-changes.outputs.changes > 0
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 0caf81e

Please sign in to comment.