Skip to content

Commit

Permalink
build(go, CLI): Add license check for go and CLI [TSI-2537] (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan authored Jul 25, 2024
1 parent 641fc62 commit c9568c4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Currently this does not contain any tests, only a license check
# Once we add tests, we should add a step here to run them
name: Run CLI Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19.6'
- name: Generate CLI
run: |
npm install
npm run generate.cli
- name: License check
uses: phrase/actions/lawa-ci@v1
with:
github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }}
decisions-file: .license-decisions.yml
working-directory: clients/cli
package-managers: gomodules
7 changes: 7 additions & 0 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ jobs:
npm run generate.go
cd ./clients/go/test
go test
- name: License check
uses: phrase/actions/lawa-ci@v1
with:
github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }}
decisions-file: .license-decisions.yml
working-directory: clients/go
package-managers: gomodules
4 changes: 4 additions & 0 deletions clients/cli/.license-decisions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- - :inherit_from
- url: https://raw.githubusercontent.com/phrase/lawa/master/config/license-decisions.yml
authorization: token $GITHUB_TOKEN
4 changes: 4 additions & 0 deletions clients/go/.license-decisions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- - :inherit_from
- url: https://raw.githubusercontent.com/phrase/lawa/master/config/license-decisions.yml
authorization: token $GITHUB_TOKEN

0 comments on commit c9568c4

Please sign in to comment.