Skip to content

Commit 358a730

Browse files
authored
Merge pull request #1634 from actions/Link-/optimise-deps
Upgrade `@actions/cache` to `4.0.4` and move `@protobuf-ts/plugin` to dev depdencies
2 parents 640a1c2 + 2ee706e commit 358a730

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+6656
-14862
lines changed

.github/workflows/licensed.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
call-licensed:
14-
name: Licensed
15-
uses: actions/reusable-workflows/.github/workflows/licensed.yml@main
13+
validate-cached-dependency-records:
14+
runs-on: ubuntu-latest
15+
name: Check licenses
16+
steps:
17+
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install dependencies
22+
run: npm ci --ignore-scripts
23+
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '3.1.7'
28+
29+
- name: Install licensed tool
30+
run: |
31+
cd "$RUNNER_TEMP"
32+
curl -Lfs -o licensed.tar.gz https://github.com/licensee/licensed/archive/refs/tags/v5.0.4.tar.gz
33+
tar -xzf licensed.tar.gz
34+
cd licensed-5.0.4
35+
bundle install
36+
37+
- name: Check cached dependency records
38+
run: |
39+
cd ${{ github.workspace }}
40+
BUNDLE_GEMFILE=$RUNNER_TEMP/licensed-5.0.4/Gemfile bundle exec $RUNNER_TEMP/licensed-5.0.4/exe/licensed status

.licensed.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
sources:
22
npm: true
33

4+
# Force UTF-8 encoding
5+
encoding: 'utf-8'
6+
7+
# Ignore problematic packages with encoding issues
8+
ignored:
9+
npm:
10+
- form-data
11+
412
allowed:
513
- apache-2.0
614
- bsd-2-clause

0 commit comments

Comments
 (0)