From 22c93daf6e07d0519a023f2bbcdb376ec019ba09 Mon Sep 17 00:00:00 2001 From: Isabella Basso Date: Mon, 19 Aug 2024 06:37:55 -0300 Subject: [PATCH] GHA: build: simplify action (#271) No need to setup protoc twice. `make build` also invokes `deps`. Signed-off-by: Isabella do Amaral --- .github/workflows/build.yml | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 937f28b4..7ccc89b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,18 +2,18 @@ name: Build on: push: branches: - - 'main' + - "main" pull_request: paths-ignore: - - 'LICENSE*' - - 'DOCKERFILE*' - - '**.gitignore' - - '**.md' - - '**.txt' - - '.github/ISSUE_TEMPLATE/**' - - '.github/dependabot.yml' - - 'docs/**' - - 'scripts/**' + - "LICENSE*" + - "DOCKERFILE*" + - "**.gitignore" + - "**.md" + - "**.txt" + - ".github/ISSUE_TEMPLATE/**" + - ".github/dependabot.yml" + - "docs/**" + - "scripts/**" jobs: build: runs-on: ubuntu-latest @@ -22,22 +22,13 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: '1.21' - - name: Install Protoc - uses: arduino/setup-protoc@v3 - with: - version: "24.3" - repo-token: ${{ secrets.GITHUB_TOKEN }} + go-version: "1.21" - name: Set up Python uses: actions/setup-python@v5 with: python-version: 3.9 - - name: Install makefile dependencies - run: make deps - - name: Clean - run: make clean - name: Build - run: make build + run: make clean build - name: Check if there are uncommitted file changes run: | clean=$(git status --porcelain)