2022-03-27 19:48:50 -07:00
|
|
|
name: "Test action-install-earthly"
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
- "releases/*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit:
|
|
|
|
name: Unit Test
|
|
|
|
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:
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
cache: ${{ !env.ACT && 'yarn' || '' }}
|
|
|
|
node-version: "16.x"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: yarn install --frozen-lockfile --ignore-optional
|
|
|
|
- run: yarn test
|
|
|
|
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:
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
cache: ${{ !env.ACT && 'yarn' || '' }}
|
|
|
|
node-version: "16.x"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: yarn install --frozen-lockfile --ignore-optional
|
|
|
|
- run: yarn package
|
|
|
|
- uses: ./
|
|
|
|
- run: earthly --version
|
|
|
|
specific:
|
|
|
|
name: Test Specific 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:
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
cache: ${{ !env.ACT && 'yarn' || '' }}
|
|
|
|
node-version: "16.x"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: yarn install --frozen-lockfile --ignore-optional
|
|
|
|
- run: yarn package
|
|
|
|
- uses: ./
|
|
|
|
with:
|
|
|
|
version: 0.5.0
|
|
|
|
- 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:
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
cache: ${{ !env.ACT && 'yarn' || '' }}
|
|
|
|
node-version: "16.x"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: yarn install --frozen-lockfile --ignore-optional
|
|
|
|
- run: yarn package
|
|
|
|
- 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:
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
cache: ${{ !env.ACT && 'yarn' || '' }}
|
|
|
|
node-version: "16.x"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: yarn install --frozen-lockfile --ignore-optional
|
|
|
|
- run: yarn package
|
|
|
|
- uses: ./
|
|
|
|
with:
|
|
|
|
version: ^0.6.1
|
|
|
|
- run: earthly --version
|