Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed May 28, 2024
1 parent 5453dee commit b1a92b4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,44 @@ jobs:
- name: test
run: yarn run test:lint

test-licenses:
needs: [ 'build' ]
name: test licenses
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: install flict
run: pip install flict
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ env.NODE_ACTIVE_LTS }}
# see https://github.com/actions/setup-node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version ${{ env.YARN_VERSION }}
- name: Setup subject
run: |
yarn install --no-immutable
yarn info --name-only --recursive
- name: fetch build artifact
# see https://github.com/actions/download-artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.BUNDLES_DIR }}
path: ${{ env.BUNDLES_DIR }}
- name: make NOTICE and summary
run: |
mkdir -p _tmp
yarn node tools/write-3rd-party-licenses.cjs _tmp/NOTICE _tmp/lsummary
- name: test license compatibility
run: flict display-compatibility $(cat _tmp/lsummary)

test-node:
needs: [ 'build' ]
name: test (node${{ matrix.node-version }} ${{ matrix.os }})
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/dist/
/release_assets/


_tmp/

# yarn stuff - for now, until setup is hardened
# see also: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
Expand Down

0 comments on commit b1a92b4

Please sign in to comment.