-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(go, CLI): Add license check for go and CLI [TSI-2537] (#657)
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |