Re-arrange test setup #135
Workflow file for this run
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: PR | |
on: pull_request | |
jobs: | |
superlinter: | |
name: Lint bash, docker, markdown, and yaml | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Lint codebase | |
uses: docker://github/super-linter:v3.8.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_ALL_CODEBASE: true | |
VALIDATE_BASH: true | |
VALIDATE_DOCKERFILE: true | |
VALIDATE_MD: true | |
VALIDATE_YAML: true | |
verify-changelog: | |
name: Verify CHANGELOG is valid | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ponylang/changelog-tool:release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Verify CHANGELOG | |
run: changelog-tool verify | |
release-vs-ponyc-release: | |
name: Verify release mode on Linux with most recent ponyc release | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ponylang/shared-docker-ci-x86-64-unknown-linux-builder:release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: config=debug | |
run: make ci config=debug | |
- name: config=release | |
run: make ci config=release | |
macos-debug-vs-ponyc-release: | |
name: Verify PR builds on macOS with most recent ponyc release | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install pony tools | |
run: bash .ci-scripts/macOS-install-release-pony-tools.bash | |
- name: config=debug | |
run: | | |
export PATH=/Users/runner/.local/share/ponyup/bin/:$PATH | |
make ci config=debug | |
- name: config=release | |
run: | | |
export PATH=/Users/runner/.local/share/ponyup/bin/:$PATH | |
make ci config=release | |
windows-debug-vs-ponyc-release: | |
name: Verify PR builds on Windows with most recent ponyc release | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/ponyc-x86-64-pc-windows-msvc.zip -OutFile C:\ponyc.zip; | |
Expand-Archive -Force -Path C:\ponyc.zip -DestinationPath C:\ponyc; | |
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/corral-x86-64-pc-windows-msvc.zip -OutFile C:\corral.zip; | |
Expand-Archive -Force -Path C:\corral.zip -DestinationPath C:\ponyc; | |
$env:PATH = 'C:\ponyc\bin;' + $env:PATH; | |
- name: config=debug | |
run: .\make.ps1 -Command test -Config Debug 2>&1; | |
- name: config=release | |
run: .\make.ps1 -Command test -Config Debug 2>&1; |