Skip to content

feat: implement Trends API endpoint (GET /2/trends/by/woeid/{woeid}) … #417

feat: implement Trends API endpoint (GET /2/trends/by/woeid/{woeid}) …

feat: implement Trends API endpoint (GET /2/trends/by/woeid/{woeid}) … #417

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: go test
strategy:
matrix:
go-version: ['1.21', '1.22', '1.23']
runs-on: ubuntu-22.04
steps:
- name: check out code into the Go module directory
uses: actions/checkout@v4
- name: set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: restore cache
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: get dependencies
run: |
go mod download
- name: test
run: go test -race ./...