1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

70 lines
1.4 KiB
YAML
Raw Normal View History

2019-11-15 23:11:17 -08:00
name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
2020-04-18 13:40:00 -07:00
2019-11-15 23:11:17 -08:00
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.12
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: |
make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.12
- name: Checkout
uses: actions/checkout@v1
- name: Test
2019-11-24 13:17:47 -08:00
env:
VIMEO_TEST_API_KEY: ${{ secrets.VIMEO_ACCESS_TOKEN }}
YOUTUBE_TEST_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
2019-11-15 23:11:17 -08:00
run: |
make test
2020-04-18 13:40:00 -07:00
checks:
name: Checks
2019-11-15 23:11:17 -08:00
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.12
2020-04-18 13:40:00 -07:00
2019-11-15 23:11:17 -08:00
- name: Checkout
uses: actions/checkout@v1
2020-04-18 13:40:00 -07:00
- 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
2019-11-15 23:11:17 -08:00
- name: Lint
run: |
make lint