mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.3.1 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.3.1...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
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@v3
|
|
with:
|
|
go-version: 1.15
|
|
- uses: actions/checkout@v3
|
|
- run: make build
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: podsync-${{ matrix.os }}
|
|
path: bin/
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.15
|
|
- uses: actions/checkout@v3
|
|
- 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@v3
|
|
- uses: actions/checkout@v3
|
|
- uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.43.0
|
|
|
|
- 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
|