mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 20:01:53 +08:00
29 lines
787 B
YAML
29 lines
787 B
YAML
on: [push, pull_request]
|
|
name: Test
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.19.x]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Cache-Go
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: |
|
|
~/go/pkg/mod # Module download cache
|
|
~/.cache/go-build # Build cache (Linux)
|
|
~/Library/Caches/go-build # Build cache (Mac)
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
- name: Test
|
|
run: go test ./...
|