-
-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (52 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Set PATH
run: echo "$(pwd)/target/debug:$PATH" >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
repository: 'guybedford/chomp-extensions'
path: 'chomp-extensions'
- name: Run Core Tests
run: chomp -c test/chompfile.toml test
env:
CHOMP_CORE: ../chomp-extensions
- name: Run Template Tests
run: chomp -c chomp-extensions/chompfile.toml test
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: cargo
- name: Build
run: cargo build --verbose
- name: Set PATH
run: echo echo "$(pwd)/target/debug" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: actions/checkout@v3
with:
repository: 'guybedford/chomp-extensions'
path: 'chomp-extensions'
- name: Run Core Tests
run: chomp -c test/chompfile.toml test
env:
CHOMP_CORE: ../chomp-extensions
- name: Run Template Tests
run: chomp -c chomp-extensions/chompfile.toml test