-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.09 KB
/
build-and-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
name: Build and test SDK
on:
pull_request:
branches: [master]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: sudo apt-get install protobuf-compiler
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check for non-default features
run: cargo check --no-default-features --features rustls-021
- name: Run cargo format
run: cargo fmt --check
- name: Test
run: cargo test --features=integration_tests
env:
COGNITE_PROJECT: opcua-interface-test
COGNITE_BASE_URL: https://greenfield.cognitedata.com
COGNITE_TOKEN_URL: ${{ secrets.TOKEN_URL }}
COGNITE_SCOPES: https://greenfield.cognitedata.com/.default
COGNITE_CLIENT_ID: ${{ secrets.CLIENT_ID }}
COGNITE_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
CORE_DM_TEST_SPACE: ${{ secrets.CORE_DM_TEST_SPACE }}