-
Notifications
You must be signed in to change notification settings - Fork 25
50 lines (42 loc) · 1.31 KB
/
test-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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/
printf "#\!/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