From d136de68b57d4524973188c2dbbb408108b3a927 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 10 Oct 2021 22:21:22 -0700 Subject: [PATCH 1/3] Fix YAML syntax. --- .github/workflows/tests.yml | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a35ba5c..0ca677b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,9 +20,9 @@ jobs: steps: - uses: actions/checkout@v2 - run: | - [ -d "~/cached-apt-install-packages" ] || exit 1; - [ -d "~/cached-apt-install-packages/dot" ] || exit 2; - [ -d "~/cached-apt-install-packages/rolldice" ] || exit 3; + [ -d "~/cached-apt-install-packages" ] || exit 1; + [ -d "~/cached-apt-install-packages/dot" ] || exit 2; + [ -d "~/cached-apt-install-packages/rolldice" ] || exit 3; add_install: needs: verify @@ -42,10 +42,10 @@ jobs: steps: - uses: actions/checkout@v2 - run: | - [ -d "~/cached-apt-install-packages" ] || exit 4; - [ -d "~/cached-apt-install-packages/dot" ] || exit 5; - [ -d "~/cached-apt-install-packages/g++" ] || exit 6; - [ -d "~/cached-apt-install-packages/rolldice" ] || exit 7; + [ -d "~/cached-apt-install-packages" ] || exit 4; + [ -d "~/cached-apt-install-packages/dot" ] || exit 5; + [ -d "~/cached-apt-install-packages/g++" ] || exit 6; + [ -d "~/cached-apt-install-packages/rolldice" ] || exit 7; verify_cleanup: needs: verify_add @@ -57,10 +57,10 @@ jobs: cache_key: ${{ env.GITHUB_JOB }}_1 packages: dot g++ - run: | - [ -d "~/cached-apt-install-packages" ] || exit 8; - [ -d "~/cached-apt-install-packages/dot" ] || exit 9; - [ -d "~/cached-apt-install-packages/g++" ] || exit 10; - [ -d "~/cached-apt-install-packages/rolldice" ] && exit 11; + [ -d "~/cached-apt-install-packages" ] || exit 8; + [ -d "~/cached-apt-install-packages/dot" ] || exit 9; + [ -d "~/cached-apt-install-packages/g++" ] || exit 10; + [ -d "~/cached-apt-install-packages/rolldice" ] && exit 11; verify_isolation: needs: verify_add @@ -72,11 +72,11 @@ jobs: cache_key: ${{ env.GITHUB_JOB }}_1 packages: show-motd - run: | - [ -d "~/cached-apt-install-packages" ] || exit 12; - [ -d "~/cached-apt-install-packages/motd" ] || exit 13; - [ -d "~/cached-apt-install-packages/dot" ] && exit 14; - [ -d "~/cached-apt-install-packages/g++" ] && exit 15; - [ -d "~/cached-apt-install-packages/rolldice" ] && exit 16; + [ -d "~/cached-apt-install-packages" ] || exit 12; + [ -d "~/cached-apt-install-packages/motd" ] || exit 13; + [ -d "~/cached-apt-install-packages/dot" ] && exit 14; + [ -d "~/cached-apt-install-packages/g++" ] && exit 15; + [ -d "~/cached-apt-install-packages/rolldice" ] && exit 16; no_packages: runs-on: ubuntu-latest @@ -85,8 +85,8 @@ jobs: - name: Execute uses: actions/cached-apt-install-action@v1 with: - cache_key: - packages: dot + cache_key: '' + packages: '' continue-on-error: true - name: Verify if: steps.execute.outcom != 'failure' @@ -104,4 +104,4 @@ jobs: continue-on-error: true - name: Verify if: steps.execute.outcome != 'failure' - run: exit 1 \ No newline at end of file + run: exit 1 From a759fc2fc188359fc9cbef09eea83893d7c28cf0 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 10 Oct 2021 22:23:54 -0700 Subject: [PATCH 2/3] Fix tests name. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0ca677b..d5e5fe8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Success Tests +name: Tests on: [push, pull_request] jobs: From 7e953c93344a8d5326bd95710ec9e2c19f92e214 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 10 Oct 2021 22:25:45 -0700 Subject: [PATCH 3/3] Repoint package for tests. --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d5e5fe8..c043605 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: name: Install and cache. steps: - uses: actions/checkout@v2 - - uses: actions/cached-apt-install-action@v1 + - uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: ${{ env.GITHUB_JOB }} packages: dot rolldice @@ -30,7 +30,7 @@ jobs: name: Add another install and cache. steps: - uses: actions/checkout@v2 - - uses: actions/cached-apt-install-action@v1 + - uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: ${{ env.GITHUB_JOB }} packages: dot rolldice g++ @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest name: Verify omitted packages are cleaned up. steps: - - uses: actions/cached-apt-install-action@v1 + - uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: ${{ env.GITHUB_JOB }}_1 packages: dot g++ @@ -67,7 +67,7 @@ jobs: runs-on: ubuntu-latest name: Verify cache state is not shared. steps: - - uses: actions/cached-apt-install-action@v1 + - uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: ${{ env.GITHUB_JOB }}_1 packages: show-motd @@ -83,7 +83,7 @@ jobs: name: No packages passed. steps: - name: Execute - uses: actions/cached-apt-install-action@v1 + uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: '' packages: '' @@ -97,7 +97,7 @@ jobs: name: Package not found. steps: - name: Execute - uses: actions/cached-apt-install-action@v1 + uses: awalsh128/cache-apt-pkgs-action@v1@v1 with: cache_key: ${{ env.GITHUB_JOB }} packages: package_that_doesnt_exist