changing all the steps #8
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: "Lint bindings" | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- 'docs/*' | |
push: | |
branches: | |
- 'main' | |
- 'releases/**' | |
jobs: | |
build-proto: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: "on" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
cache: true | |
cache-dependency-path: | | |
agent/go.sum | |
master/go.sum | |
proto/go.sum | |
- name: Setup Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
version: 3.17.1 | |
repo-token: ${{ secrets.DETERMINED_TOKEN }} | |
- name: Install dependencies | |
run: | | |
make -C proto get-deps | |
make -C master get-deps | |
make -C agent get-deps | |
- name: Build | |
run: make -C proto build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: proto | |
path: proto/build/ | |
retention-days: 1 | |
lint-py-bindings: | |
needs: | |
- build-proto | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: proto | |
path: proto/build/ | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- name: Run checks | |
run: | | |
make -C bindings force-gen | |
make -C bindings check/python | |
lint-ts-bindings: | |
needs: | |
- build-proto | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: proto | |
path: proto/build/ | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 14.0.2 | |
- name: Run checks | |
run: | | |
make -C bindings get-deps | |
make -C bindings check/typescript-fetch |