setup latest #367
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: setup latest | |
on: | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
- cron: '30 1 * * *' | |
push: | |
branches: ['main'] | |
paths: ['**.ts', '**.js', '**.json', '**.yml'] | |
pull_request: | |
branches: ['main'] | |
paths: ['**.ts', '**.js', '**.json', '**.yml'] | |
types: [opened, synchronize, reopened] | |
jobs: | |
################################################################################ | |
# Setup Agda (latest) on every supported platform | |
################################################################################ | |
setup-latest: | |
name: Setup Agda (latest) on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Agda | |
uses: ./ | |
with: | |
force-no-build: true | |
agda-version: 'latest' | |
agda-stdlib-version: 'recommended' | |
- name: Test Agda | |
run: | | |
agda -v0 greet.agda | |
shell: sh | |
working-directory: tests/agda | |
- name: Test Agda with agda-stdlib | |
run: | | |
agda -v0 hello-world-dep.agda | |
agda -v0 hello-world-dep-lookup.agda | |
agda -v0 hello-world-proof.agda | |
shell: sh | |
working-directory: tests/agda-stdlib | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
[ | |
ubuntu-22.04, | |
ubuntu-20.04, | |
macos-11, | |
macos-12, | |
windows-2019, | |
windows-2022 | |
] |