Skip to content

Commit

Permalink
[FEAT] add tests github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjosh committed Jun 17, 2023
1 parent 6a1cce9 commit f90c483
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:

goartifacts:
artifacts:
name: artifacts
strategy:
matrix:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
retention-days: 1

publish:
needs: [goartifacts]
needs: [artifacts]
runs-on: ubuntu-20.04
permissions:
contents: write
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
helm_ls_linux_arm.sha256sum:./helm_ls_linux_arm.sha256sum
body: |
```
${{ needs.goartifacts.outputs.version }}
${{ needs.artifacts.outputs.version }}
```
### macOS (x64)
1. Download **helm_ls_darwin_amd64**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golangci-lint
name: Lint

on:
push:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
tags:
- v*
branches:
- "*"
pull_request:

jobs:

tests:
name: tests
strategy:
matrix:
go-version: [1.19.1]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ install-metalinter:
@$(GO) install -v github.com/golangci/golangci-lint/cmd/[email protected]

test:
$(GO) test ./... -v -race
@$(GO) test ./... -v -race

install-gox:
@$(GO) install github.com/mitchellh/[email protected]
Expand Down

0 comments on commit f90c483

Please sign in to comment.