Correct reported file permissions to be read-only (#501) #1335
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# only run on PRs targeting main | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/hairyhenderson/gomplate-ci-build:latest | |
steps: | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Someone" | |
- uses: actions/checkout@v4 | |
- run: make test | |
- run: make test-race | |
fscli-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/hairyhenderson/gomplate-ci-build:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build fscli | |
run: | | |
make bin/fscli_linux-amd64 | |
make bin/fscli_linux-arm-v7 | |
make bin/fscli_linux-arm64 | |
make bin/fscli_linux-ppc64le | |
make bin/fscli_darwin-amd64 | |
make bin/fscli_darwin-arm64 | |
make bin/fscli_windows-amd64.exe | |
windows-build: | |
runs-on: windows-latest | |
env: | |
TMP: D:\a\tmp | |
steps: | |
- run: pwd | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Someone" | |
- uses: actions/checkout@v4 | |
- run: make test |