Add TLS support #602
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@v4 | |
with: | |
go-version: 1.18 | |
- 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@v4 | |
with: | |
go-version: 1.18 | |
- 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@v4 | |
- uses: actions/checkout@v3 | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.50.1 | |
- 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 |