merge_commit_sha can be null if the PR is closed and not merged #53
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: fetch crystal version | |
id: crystal-version | |
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT | |
- name: install crystal | |
uses: crystal-lang/install-crystal@v1.8.2 | |
with: | |
crystal: ${{ steps.crystal-version.outputs.crystal }} | |
- name: bootstrap | |
run: script/bootstrap --ci | |
- name: test | |
run: script/test |