Skip to content

Commit

Permalink
Merge pull request #14 from DiamondLightSource/9-setup-dependency-che…
Browse files Browse the repository at this point in the history
…cker

9 setup dependency checker
  • Loading branch information
stan-dot authored Oct 11, 2024
2 parents 24b8142 + bd3c856 commit 4b0d13d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Test
run: pnpm test
18 changes: 18 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
jobs:
license_check:
runs-on: ubuntu-lastest
steps:
- name: Check license-checker CSV file without headers
id: license_check_report
uses: pilosus/action-pip-license-checker@v2
with:
external: "npm-license-checker.csv"
external-format: "csv"
external-options: "{:skip-header true}"
fail: "StrongCopyleft,NetworkCopyleft,Other,Error"
fails-only: true
exclude: "DiamondLightSource.*"
exclude-license: "(?i)copyright"
totals: true
verbose: 1
github-token: ${{ secrets.OAUTH_TOKEN_GITHUB }}

0 comments on commit 4b0d13d

Please sign in to comment.