mirror of https://github.com/ColorlibHQ/AdminLTE
Daniel
2 years ago
5 changed files with 71 additions and 89 deletions
@ -1,5 +1,4 @@
|
||||
name: "CodeQL config" |
||||
|
||||
paths-ignore: |
||||
- docs/assets/plugins/ |
||||
- plugins/ |
||||
- dist |
||||
|
@ -0,0 +1,43 @@
|
||||
name: Bundlewatch |
||||
|
||||
on: |
||||
push: |
||||
branches-ignore: |
||||
- "dependabot/**" |
||||
pull_request: |
||||
workflow_dispatch: |
||||
|
||||
env: |
||||
FORCE_COLOR: 2 |
||||
NODE: 18 |
||||
|
||||
permissions: |
||||
contents: read |
||||
|
||||
jobs: |
||||
bundlewatch: |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Clone repository |
||||
uses: actions/checkout@v3 |
||||
with: |
||||
persist-credentials: false |
||||
|
||||
- name: Set up Node.js |
||||
uses: actions/setup-node@v3 |
||||
with: |
||||
node-version: "${{ env.NODE }}" |
||||
cache: npm |
||||
|
||||
- name: Install npm dependencies |
||||
run: npm ci |
||||
|
||||
- name: Run dist |
||||
run: npm run compile |
||||
|
||||
- name: Run bundlewatch |
||||
run: npm run bundlewatch |
||||
env: |
||||
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}" |
||||
CI_BRANCH_BASE: v4-dev |
@ -1,64 +0,0 @@
|
||||
name: CI |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
- v4-dev |
||||
pull_request: |
||||
branches: |
||||
- "**" |
||||
|
||||
env: |
||||
FORCE_COLOR: 2 |
||||
|
||||
jobs: |
||||
run: |
||||
runs-on: ${{ matrix.os }} |
||||
|
||||
strategy: |
||||
fail-fast: false |
||||
matrix: |
||||
node: |
||||
- "14.x" |
||||
- "16.x" |
||||
- "18.x" |
||||
os: |
||||
- "ubuntu-latest" |
||||
- "macos-latest" |
||||
- "windows-latest" |
||||
|
||||
steps: |
||||
- name: Clone repository |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Use Node.js ${{ matrix.node }} |
||||
uses: actions/setup-node@v2 |
||||
with: |
||||
node-version: ${{ matrix.node }} |
||||
|
||||
- name: Get npm cache directory |
||||
id: npm-cache |
||||
run: | |
||||
echo "::set-output name=dir::$(npm config get cache)" |
||||
|
||||
- name: Set up npm cache |
||||
uses: actions/cache@v2 |
||||
with: |
||||
path: ${{ steps.npm-cache.outputs.dir }} |
||||
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}} |
||||
restore-keys: | |
||||
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
||||
${{ runner.os }}-node-v${{ matrix.node }}- |
||||
|
||||
- name: Install npm dependencies |
||||
run: npm ci |
||||
|
||||
- name: Build files |
||||
run: npm run compile |
||||
|
||||
- name: Run bundlewatch |
||||
run: npm run bundlewatch |
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '16') |
||||
env: |
||||
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}" |
Loading…
Reference in new issue