AdminLTE/.github/workflows/ci.yml

48 lines
912 B
YAML
Raw Normal View History

2020-05-31 13:58:08 +02:00
name: CI
2020-05-08 16:04:19 +02:00
on:
2020-05-08 16:04:19 +02:00
pull_request:
release:
types:
- created
env:
CI: true
2020-05-08 16:04:19 +02:00
jobs:
2020-05-31 13:07:42 +02:00
run:
runs-on: ${{ matrix.os }}
2020-05-08 16:04:19 +02:00
strategy:
2020-05-31 13:07:42 +02:00
fail-fast: false
2020-05-08 16:04:19 +02:00
matrix:
2020-05-31 13:07:42 +02:00
node:
- "10.x"
- "12.x"
- "14.x"
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
2020-05-08 16:04:19 +02:00
steps:
2020-05-31 13:58:08 +02:00
- name: Clone repository
uses: actions/checkout@v2
2020-05-31 13:07:42 +02:00
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
2020-05-31 13:58:08 +02:00
- name: Install npm dependencies
run: npm ci
- name: Build files
run: npm run compile
2020-06-01 20:27:25 +02:00
- name: Run bundlewatch
run: npm run bundlewatch
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '12')
env:
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"