meta-rules-dat/.github/workflows/test.yml
Loyalsoldier eb61e68d38
Test
2019-12-31 23:36:46 +08:00

31 lines
688 B
YAML

name: Test
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Get GeoLite2 file
run: |
curl ip.sb
pwd
ls -lah ./
curl -L -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=JvbzLLx7qBZT&suffix=zip"
ls -lah ./
unzip GeoLite2-Country-CSV.zip
rm -f GeoLite2-Country-CSV.zip
mv GeoLite2* geoip
ls -lah ./
ls -lah ./geoip