Mac test #22
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] | |
name: CI | |
jobs: | |
build_and_test: | |
name: Tests (Mac) | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
rust_version: [default] | |
fail-fast: false | |
timeout-minutes: 30 | |
permissions: | |
id-token: "write" | |
contents: "read" | |
steps: | |
- name: checkout and env setup | |
uses: actions/checkout@v3 | |
- name: Install EdgeDB CLI | |
run: | | |
bash <(curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com) --nightly -y | |
. ~/.bash_profile | |
echo "PATH=$PATH" >> $GITHUB_ENV | |
gel server install --nightly | |
mkdir -p ~/.local/bin/ | |
echo "#!/bin/bash\n\"$(gel server info --channel=nightly --get bin-path)\" \"$@\"\n" > ~/.local/bin/edgedb-server | |
chmod +x ~/.local/bin/edgedb-server | |
shell: bash | |
- name: Show binaries | |
run: | | |
ls -l ~/.local/bin | |
edgedb-server --version | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust_version == 'default' && 'stable' || matrix.rust_version }} | |
components: rustfmt, clippy | |
- name: setup rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install just | |
run: cargo install just | |
- name: Test all features | |
run: just test |