This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
Merge pull request #1387 from MeilCli/dependabot/npm_and_yarn/types/s… #599
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: CI-Master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
uses: ./.github/workflows/ci-base-build.yml | |
secrets: inherit | |
test: | |
strategy: | |
matrix: | |
include: | |
# latest, latest | |
- os: ubuntu-20.04 | |
crystal: latest | |
shards: latest | |
- os: ubuntu-22.04 | |
crystal: latest | |
shards: latest | |
- os: macos-11 | |
crystal: latest | |
shards: latest | |
- os: macos-12 | |
crystal: latest | |
shards: latest | |
# crystal 1.2.0 has minor change, changing macos resouce name | |
- os: macos-12 | |
crystal: 1.1.0 | |
shards: 0.16.0 | |
# 0.35.0, 0.12.0 | |
# shards 0.12.0 has breaking change, shards 0.12.0 needs crystal 0.35.0 | |
- os: ubuntu-22.04 | |
crystal: 0.35.0 | |
shards: 0.12.0 | |
- os: macos-12 | |
crystal: 0.35.0 | |
shards: 0.12.0 | |
# 0.35.0, 0.11.0 | |
# crystal 0.35.0 has breaking change, crystal 0.35.0 need shards 0.11.0 | |
- os: ubuntu-22.04 | |
crystal: 0.35.0 | |
shards: 0.11.0 | |
- os: macos-12 | |
crystal: 0.35.0 | |
shards: 0.11.0 | |
# 0.34.0, 0.10.0 | |
# crystal 0.34.0 has breaking change, shards 0.10.0 needs crsytal 0.34.0 | |
# ubuntu-18.04 fails shards 0.10.0: https://forum.crystal-lang.org/t/compiling-an-app-to-work-on-both-ubuntu-16-and-18/328 | |
- os: macos-12 | |
crystal: 0.34.0 | |
shards: 0.10.0 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
with: | |
crystal_version: ${{ matrix.crystal }} | |
shards_version: ${{ matrix.shards }} | |
cache_prefix: '${{ matrix.os }}-${{ matrix.crystal }}-${{ matrix.shards }}-' | |
- run: crystal version | |
- run: shards --version | |
- uses: MeilCli/test-command-action@v3 | |
if: matrix.crystal != 'latest' | |
name: Check Crystal Version | |
with: | |
command: crystal version | |
expect_contain: 'Crystal ${{ matrix.crystal }}' | |
- uses: MeilCli/test-command-action@v3 | |
if: matrix.shards != 'latest' | |
name: Check Shards Version | |
with: | |
command: shards --version | |
expect_contain: 'Shards ${{ matrix.shards }}' | |
- name: Run Crystal | |
run: | | |
echo 'puts "Hello Crystal"' > hello.cr | |
crystal run hello.cr |