Access uploaded files via env.params.files
.
#85
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
crystal: [latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal }} | |
- name: Install libraries | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
brew install libxml2 | |
fi | |
shell: bash | |
- name: Install shards | |
run: shards install | |
- name: Run tests | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
LOG_LEVEL=NONE PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig" crystal spec | |
else | |
LOG_LEVEL=NONE crystal spec | |
fi | |
- name: Build | |
run: shards build |