Skip to content

Commit

Permalink
Merge pull request #49 from asecurityteam/github-actions
Browse files Browse the repository at this point in the history
Drop Travis, Enable GitHub Actions
  • Loading branch information
ensary authored Mar 27, 2024
2 parents 5820bd8 + b9e17ec commit 19fedc7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 153 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push]

jobs:
golang:
runs-on: ubuntu-latest # we execute everything except make in docker anyway
name: GoLang Basics
steps:
- name: Checkout
uses: actions/checkout@v4
- name: FS Permissions
# workaround for permissions with contaner attempting to create directories
run: chmod 777 -R "$(pwd)"
- name: Dep
run: make dep
- name: Lint
run: make lint
- name: Unit Tests
run: make test
- name: Integration Tests
run: make integration
- name: Test Coverage
run: make coverage
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
files: .coverage/combined.cover.out
token: ${{ secrets.CODECOV_TOKEN }}
137 changes: 0 additions & 137 deletions .golangci.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TAG := $(shell git rev-parse --short HEAD)
DIR := $(shell pwd -L)
DIR := $(shell pwd -L)
SDCLI_VERSION :=v1.4.0
SDCLI_VERSION :=v1.5
SDCLI=docker run --rm -v "$(DIR):$(DIR)" -w "$(DIR)" asecurityteam/sdcli:$(SDCLI_VERSION)


Expand Down

0 comments on commit 19fedc7

Please sign in to comment.