mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-21 10:37:06 +00:00
Test action workflow.
new file: .github/workflows/main.yml
This commit is contained in:
parent
b48a00753b
commit
3fa1ba390c
22
.github/workflows/main.yml
vendored
Normal file
22
.github/workflows/main.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue