From e2ae2400b4a76b08ffa7e7e8db259bb35d283beb Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Tue, 31 Dec 2019 23:18:51 +0800 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..721d7a47 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 +