Update to new model-garage that understands Tesla streaming #117
Workflow file for this run
This file contains 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: Tests | |
on: | |
pull_request: | |
branches: ["**"] | |
push: | |
branches: | |
- main | |
jobs: | |
install-tools: | |
if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install all tools | |
run: make tools | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: tools | |
path: bin/ | |
benthos-test: | |
needs: install-tools | |
if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- uses: actions/download-artifact@v4 | |
with: | |
name: tools | |
path: bin/ | |
- name: Set executable | |
run: chmod +x bin/* | |
- name: Run Benthos tests | |
run: make test-benthos | |
go-tests: | |
needs: install-tools | |
if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- uses: actions/download-artifact@v4 | |
with: | |
name: tools | |
path: bin/ | |
- name: Set executable | |
run: chmod +x bin/* | |
- name: Run Go tests | |
run: go test ./... | |
prometheus-alerts: | |
needs: install-tools | |
if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: tools | |
path: bin/ | |
- name: Set executable | |
run: chmod +x bin/* | |
- name: Run Prometheus alert tests | |
run: make test-prometheus-alerts | |
prometheus-rules: | |
needs: install-tools | |
if: "!contains(github.event.head_commit.message, 'Merge pull request')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: tools | |
path: bin/ | |
- name: Set executable | |
run: chmod +x bin/* | |
- name: Run Prometheus rules tests | |
run: make test-prometheus-rules |