Skip to content

Commit

Permalink
Merge pull request #23 from yumafuu/chore/ci-test
Browse files Browse the repository at this point in the history
[add] test ci
  • Loading branch information
yumafuu authored Aug 7, 2024
2 parents 009dbc7 + 71db422 commit e54b6a7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: golangci-lint

permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
# Optional: allow write access to checks to allow the action to annotate code in the PR.
checks: write

on:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: go test

permissions:
contents: read
pull-requests: read
checks: write

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: go test
run: go test -p 4 ./...
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ S1M is AWS Parameter Store TUI tool.

It allows you to manage your parameters in AWS Parameter Store.

[![GitHub release](https://img.shields.io/github/v/release/yumafuu/s1m)]()
![Release](https://github.com/yumafuu/s1m/actions/workflows/release.yaml/badge.svg)
![Test](https://github.com/yumafuu/s1m/actions/workflows/test.yaml/badge.svg)


</div>

Expand Down

0 comments on commit e54b6a7

Please sign in to comment.