mirror of
https://github.com/extractions/setup-just
synced 2026-09-07 20:04:00 +00:00
42 lines
1013 B
YAML
42 lines
1013 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
- cron: 0 12 1 * *
|
|
|
|
jobs:
|
|
test-latest:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Setup just
|
|
uses: ./
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Test
|
|
run: |
|
|
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|
|
shell: bash
|
|
|
|
test-version:
|
|
needs: test-latest
|
|
strategy:
|
|
matrix: # https://github.com/casey/just/releases
|
|
just-version: [0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.9, 0.10.7, 0.11.2, 1.5.0, 1.23.0, 1.40.0]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Run self
|
|
uses: ./
|
|
with:
|
|
just-version: ${{ matrix.just-version }}
|
|
- name: Check version
|
|
run: just --version | grep -E "^just v?${{ matrix.just-version }}$"
|
|
- name: Test
|
|
run: |
|
|
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|