Require Inko 0.17.0 or newer #117
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: Push | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/inko-lang/inko:latest | |
steps: | |
- run: microdnf install --quiet --assumeyes tar git | |
- uses: actions/checkout@v4 | |
- run: inko --version | |
- run: inko fmt --check | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/inko-lang/inko:latest | |
steps: | |
- name: Install dependencies | |
run: microdnf install --quiet --assumeyes tar git | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: '~/.local/share/inko/packages' | |
key: deps-${{ hashFiles('inko.pkg') }} | |
- name: Install Inko packages | |
run: inko pkg sync | |
- name: Run tests | |
run: inko test |