107 lines
2.9 KiB
YAML
Raw Normal View History

2022-03-27 19:48:50 -07:00
name: "Test action-install-earthly"
on:
pull_request:
workflow_dispatch:
2022-03-27 19:48:50 -07:00
push:
branches:
- "main"
- "releases/*"
jobs:
unit:
name: earthly +all
2022-03-27 19:48:50 -07:00
strategy:
matrix:
platform: [ubuntu-latest]
2022-03-27 19:48:50 -07:00
runs-on: ${{ matrix.platform }}
steps:
2022-04-20 18:32:57 -07:00
- uses: actions/checkout@v3
2022-09-20 13:25:22 -06:00
with:
token: ${{ secrets.GRISWOLDTHECAT_GITHUB_TOKEN }}
2022-04-20 18:32:57 -07:00
- uses: actions/setup-node@v3
2022-03-27 19:48:50 -07:00
with:
2022-03-27 19:59:46 -07:00
cache: ${{ !env.ACT && 'npm' || '' }}
2022-03-27 19:48:50 -07:00
node-version: "16.x"
- uses: ./
- run: earthly +all
# Below are tests specific to the github actions, which ensure the actions-setup code works with GHA
2022-03-27 19:48:50 -07:00
latest:
name: Test Latest Version Install
strategy:
matrix:
2022-03-27 19:56:45 -07:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2022-03-27 19:48:50 -07:00
runs-on: ${{ matrix.platform }}
steps:
2022-04-20 18:32:57 -07:00
- uses: actions/checkout@v3
with:
token: ${{ secrets.GRISWOLDTHECAT_GITHUB_TOKEN }}
2022-04-20 18:32:57 -07:00
- uses: actions/setup-node@v3
2022-03-27 19:48:50 -07:00
with:
2022-03-27 19:59:46 -07:00
cache: ${{ !env.ACT && 'npm' || '' }}
2022-03-27 19:48:50 -07:00
node-version: "16.x"
2022-03-27 19:59:46 -07:00
- run: npm install
- run: npm run package
2022-03-27 19:48:50 -07:00
- uses: ./
- run: earthly --version
specific:
name: Test Specific Version Install
strategy:
matrix:
# windows was not available < v0.5.15
2022-03-27 19:56:45 -07:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2022-03-27 19:48:50 -07:00
runs-on: ${{ matrix.platform }}
steps:
2022-04-20 18:32:57 -07:00
- uses: actions/checkout@v3
with:
token: ${{ secrets.GRISWOLDTHECAT_GITHUB_TOKEN }}
2022-04-20 18:32:57 -07:00
- uses: actions/setup-node@v3
2022-03-27 19:48:50 -07:00
with:
2022-03-27 19:59:46 -07:00
cache: ${{ !env.ACT && 'npm' || '' }}
2022-03-27 19:48:50 -07:00
node-version: "16.x"
2022-03-27 19:59:46 -07:00
- run: npm install
- run: npm run package
2022-03-27 19:48:50 -07:00
- uses: ./
with:
version: 0.5.15
2022-03-27 19:48:50 -07:00
- run: earthly --version
patch-range:
name: Test Patch Range Version Install
strategy:
matrix:
2022-03-27 19:56:45 -07:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2022-03-27 19:48:50 -07:00
runs-on: ${{ matrix.platform }}
steps:
2022-04-20 18:32:57 -07:00
- uses: actions/checkout@v3
with:
token: ${{ secrets.GRISWOLDTHECAT_GITHUB_TOKEN }}
2022-04-20 18:32:57 -07:00
- uses: actions/setup-node@v3
2022-03-27 19:48:50 -07:00
with:
2022-03-27 19:59:46 -07:00
cache: ${{ !env.ACT && 'npm' || '' }}
2022-03-27 19:48:50 -07:00
node-version: "16.x"
2022-03-27 19:59:46 -07:00
- run: npm install
- run: npm run package
2022-03-27 19:48:50 -07:00
- uses: ./
with:
version: 0.6.*
- run: earthly --version
major-range:
name: Test Patch Range Version Install
strategy:
matrix:
2022-03-27 19:56:45 -07:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2022-03-27 19:48:50 -07:00
runs-on: ${{ matrix.platform }}
steps:
2022-04-20 18:32:57 -07:00
- uses: actions/checkout@v3
with:
token: ${{ secrets.GRISWOLDTHECAT_GITHUB_TOKEN }}
2022-04-20 18:32:57 -07:00
- uses: actions/setup-node@v3
2022-03-27 19:48:50 -07:00
with:
2022-03-27 19:59:46 -07:00
cache: ${{ !env.ACT && 'npm' || '' }}
2022-03-27 19:48:50 -07:00
node-version: "16.x"
2022-03-27 19:59:46 -07:00
- run: npm install
- run: npm run package
2022-03-27 19:48:50 -07:00
- uses: ./
with:
version: ^0.6.1
- run: earthly --version