Skip to content

Add download command for packages #138

Add download command for packages

Add download command for packages #138

name: Build and Test
on: [push, pull_request]
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Check out code
uses: actions/checkout@v3
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build -v .
- name: Run Tests
run: go test -v ./...