Skip to content

Build: Update GeoIP/GeoSite Cache per hour #3170

Build: Update GeoIP/GeoSite Cache per hour

Build: Update GeoIP/GeoSite Cache per hour #3170

Workflow file for this run

name: Test
on:
push:
paths-ignore:
- '.github/build/*'
- '.github/docker/*'
- '.github/ISSUE_TEMPLATE/*'
- '.github/dependabot.yml'
- '.gitignore'
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '.github/build/*'
- '.github/docker/*'
- '.github/ISSUE_TEMPLATE/*'
- '.github/dependabot.yml'
- '.gitignore'
jobs:
test:
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Restore Geodat Cache
uses: actions/cache/restore@v4
with:
path: resources
key: xray-geodat-
enableCrossOsArchive: true
- name: Test
run: go test -timeout 1h -v ./...