ci: only test on latest GitHub Runners (#1438)

This commit is contained in:
James Hegedus 2023-01-19 02:29:46 +11:00 committed by GitHub
parent a1b4c3ee0f
commit 9a8bb47758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,17 +11,8 @@ env:
NUSHELL_VERSION: 0.73.0
jobs:
nix:
strategy:
fail-fast: false
matrix:
os:
- macos-10.15
- macos-11
- macos-12
- ubuntu-20.04
- ubuntu-22.04
runs-on: ${{ matrix.os }}
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -29,11 +20,6 @@ jobs:
fetch-depth: 0
- name: Install test dependencies
if: runner.os == 'macos'
run: brew install coreutils fish elvish nushell
- name: Install test dependencies
if: runner.os == 'linux'
run: |
sudo add-apt-repository -y ppa:fish-shell/nightly-master
sudo apt-get update
@ -66,3 +52,24 @@ jobs:
run: bats test
env:
GITHUB_API_TOKEN: ${{ github.token }}
macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install test dependencies
run: brew install coreutils fish elvish nushell
- name: Install bats
run: |
git clone --depth 1 --branch "v$(grep -Eo "^\\s*bats\\s*.*$" ".tool-versions" | cut -d ' ' -f2-)" https://github.com/bats-core/bats-core.git $HOME/bats-core
echo "$HOME/bats-core/bin" >>"$GITHUB_PATH"
- name: Run tests
run: bats test
env:
GITHUB_API_TOKEN: ${{ github.token }}