add toolchain shims here #224
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
on: | |
pull_request: | |
workflow_call: | |
jobs: | |
integration-tests: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
strategy: | |
fail-fast: false | |
matrix: | |
pkgs: | |
- zlib.net | |
- openssl.org^1.1 curl.se/ca-certs | |
- pipenv.pypa.io | |
- poppler.freedesktop.org/poppler-data | |
- catb.org/wumpus | |
- c-ares.org | |
- vim.org | |
# FIXME? requires a darwin platform to run, and needs | |
# macOS 12 to test. That'll require a more complex matrix | |
# using get-platform. | |
# - github.com/realm/SwiftLint | |
container: | |
image: debian:buster-slim | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: teaxyz/setup@v0 | |
- name: prefetch deno deps | |
# this makes the output from the build step more legible | |
run: deno cache **/*.ts | |
- name: install brewkit | |
run: | | |
mkdir -p "$HOME/.tea/tea.xyz/brewkit/v*" | |
mv * "$HOME/.tea/tea.xyz/brewkit/v*" | |
- run: tea pkg build ${{matrix.pkgs}} | |
id: build | |
- run: test -n '${{ steps.build.outputs.pkgs }}' | |
- run: test -n '${{ steps.build.outputs.relative-paths }}' | |
- run: | | |
if pkg query ${{ steps.build.outputs.pkgs }} --src 2>&1 | grep -E '^warn: pkg has no srcs:'; then | |
echo "srcs=false" >> $GITHUB_OUTPUT | |
else | |
echo "srcs=true" >> $GITHUB_OUTPUT | |
fi | |
id: srcs | |
- run: test -n '${{ steps.build.outputs.srcs }}' | |
if: steps.srcs.outputs.srcs == 'true' | |
- run: test -n '${{ steps.build.outputs.srcs-relative-paths }}' | |
if: steps.srcs.outputs.srcs == 'true' | |
- run: pkg test ${{matrix.pkgs}} | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: teaxyz/setup@v0 | |
- run: deno task typecheck | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: teaxyz/setup@v0 | |
- run: deno test --allow-env |