Bump golang.org/x/sync from 0.7.0 to 0.10.0 #755
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v4 | |
- run: make build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: podsync-${{ matrix.os }} | |
path: bin/ | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v4 | |
- env: | |
VIMEO_TEST_API_KEY: ${{ secrets.VIMEO_ACCESS_TOKEN }} | |
YOUTUBE_TEST_API_KEY: ${{ secrets.YOUTUBE_API_KEY }} | |
run: make test | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/setup-go@v5 | |
- uses: actions/checkout@v4 | |
- uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.57.2 | |
- name: Go mod | |
env: | |
DIFF_PATH: "go.mod go.sum" | |
run: | | |
go mod tidy | |
DIFF=$(git status --porcelain -- $DIFF_PATH) | |
if [ "$DIFF" ]; then | |
echo | |
echo "These files were modified:" | |
echo | |
echo "$DIFF" | |
echo | |
exit 1 | |
fi |