Skip to content

Commit

Permalink
ci(workflows): Create seperate license workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Jul 7, 2024
1 parent 73f8d5c commit 7391581
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,3 @@ jobs:
COVERPROFILE: ./cover.out
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: make test

license-scan:
name: License scan
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Install FOSSA
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
- name: Run FOSSA analysis
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa analyze

- name: Check FOSSA status
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa test
27 changes: 27 additions & 0 deletions .github/workflows/license.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: License

on:
workflow_dispatch:
push:
branches:
- master

jobs:
license-scan:
name: License scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install FOSSA
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
- name: Run FOSSA analysis
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa analyze

- name: Check FOSSA status
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa test
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"
- "[a-z]+/v[0-9]+.[0-9]+.[0-9]+"
workflow_run:
workflows: ["Build"]
workflows: ["Test"]
branches: [master]
types: [completed]

Expand Down

0 comments on commit 7391581

Please sign in to comment.