Merge pull-request #43 #119
This file contains hidden or 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
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout PR code (if PR) | |
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: checkout pushed code (if push) | |
if: github.event_name == 'push' | |
uses: actions/checkout@v4 | |
- name: install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy,rustfmt | |
- name: install protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
version: "21.4" | |
- name: Ensure checked-in client is up-to-date | |
run: make check-generate | |
- name: Run linters | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Run examples | |
env: | |
TURNKEY_ORGANIZATION_ID: 651b573c-861b-4f10-a478-cbcfe0c226af | |
TURNKEY_API_PUBLIC_KEY: 03bf162576eb8dfecf33d9275d09595284f6c4df0db6156c3c582777886a0ee0ac | |
TURNKEY_API_PRIVATE_KEY: ${{ secrets.TURNKEY_API_PRIVATE_KEY }} | |
run: make examples |