add toolchain shims here #221
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: teaxyz/setup@v0 | |
- uses: actions/checkout@v3 | |
with: | |
path: ${{ env.HOME }}/.tea/tea.xyz/brewkit/v* | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.HOME }}/.cache/deno | |
key: deno-get-platform-${{ hashFiles('deno.jsonc')}} | |
- name: prefetch deno deps | |
# this makes the output from the build step more legible | |
run: deno cache **/*.ts | |
- run: 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 |