Skip to content

Commit

Permalink
chore: try to use self hosted runner in ci.yml;
Browse files Browse the repository at this point in the history
  • Loading branch information
riandyrn committed Jul 20, 2023
1 parent b405219 commit 3836d19
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
run-tests:
name: Run Automated Tests
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: write
steps:
Expand All @@ -19,23 +19,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: ./.output/tmp/.buildx-cache
key: ${{ runner.os }}-buildx

- name: Build All Docker Images Necessary For Tests
run: |
docker buildx bake \
-f ./deploy/local/tests/docker-bake.json \
--set '*.cache-from'="type=local,src=./.output/tmp/.buildx-cache" \
--set '*.cache-to'="type=local,dest=./.output/tmp/.buildx-cache" \
--load
- name: Run Automated Tests
run: make test

- name: Run Test Build All
run: make test-build-all

- name: Notify To Slack If Failed
uses: lazy-actions/[email protected]
if: failure()
Expand Down

0 comments on commit 3836d19

Please sign in to comment.