From 3fa1ba390c9f2f8c10baa59c29d6c32c3b874a3a Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sun, 19 Sep 2021 12:39:45 -0700 Subject: [PATCH] Test action workflow. new file: .github/workflows/main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..38657a9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +on: [push] + +jobs: + install_packages: + runs-on: ubuntu-latest + name: Test job to install and cache APT packages (i.e. rolldice, dot). + steps: + - uses: actions/checkout@v2 + - uses: actions/cached-apt-install-action@v1 + with: + packages: rolldice dot + test_packages_cache: + needs: install_packages + runs-on: ubuntu-latest + name: Test job to verify cached APT packages (i.e. rolldice, dot). + steps: + - uses: actions/checkout@v2 + - run: | + [ -d "~/cached-apt-install-packages" ] || exit 1; + [ -d "~/cached-apt-install-packages/rolldice" ] || exit 2; + [ -d "~/cached-apt-install-packages/dot" ] || exit 3; + - shell: bash \ No newline at end of file