mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-10 03:55:35 +08:00
Create test.yml
This commit is contained in:
parent
2168f18cac
commit
e2ae2400b4
28
.github/workflows/test.yml
vendored
Normal file
28
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
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: |
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user