fix: update dir ownership data before executing as root #467
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: Test | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22.x | |
- run: make test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22.x | |
- uses: dominikh/[email protected] | |
with: | |
version: "2023.1" | |
install-go: false | |
test-alpine: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Alpine | |
uses: jirutka/setup-alpine@v1 | |
with: | |
branch: latest-stable | |
- name: Setup alpine dependencies | |
run: | | |
cat /etc/alpine-release | |
apk add git go make bash binutils-gold | |
shell: alpine.sh --root {0} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- run: | | |
make test_bash | |
git config --global --add safe.directory /home/runner/work/shell-tester/shell-tester | |
shell: alpine.sh --root {0} |