-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (36 loc) · 1.13 KB
/
test.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
on: [pull_request]
name: CI
jobs:
build_and_test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: [default, 1.75, beta]
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
- name: Install EdgeDB
run: edgedb server install --nightly
- name: Link nightly
run: ln -s `edgedb server info --channel=nightly --get bin-path` ~/.local/bin/edgedb-server
- name: Show binaries
run: ls -l ~/.local/bin
- 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