From 82a6f10433dc90e7e3df67ed93fb45ae183c9706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Carpintero?= Date: Wed, 18 Dec 2024 14:50:00 +0100 Subject: [PATCH] Migrate from travis to github actions --- .github/workflows/build.yaml | 24 ++++++++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/build.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..932240a --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,24 @@ +name: Build + +on: + push: + pull_request: + +jobs: + + build: + + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '>=1.19' + + - name: Install tests deps + run: sudo apt install nmap -y + + - name: Go test + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 03ba112..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -dist: bionic -language: go -go: - - 1.19.x -env: - global: - - CGO_ENABLED=0 -go_import_path: github.com/adevinta/vulcan-check-sdk -script: - - go install -v $(go list ./... | grep -v /vendor/) - - go test -short -v $(go list ./... | grep -v /vendor/)