mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-12 21:05:29 +01:00
Build every commit
This commit is contained in:
parent
7c1e860c50
commit
ea6367ccdc
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
|
@ -1,31 +1,28 @@
|
|||
name: Lint & build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Lint & build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
|
||||
${{ runner.OS }}-dependencies-
|
||||
${{ runner.OS }}-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Run lint
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build
|
||||
build:
|
||||
name: Lint & build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
|
||||
${{ runner.OS }}-dependencies-
|
||||
${{ runner.OS }}-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Run lint
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
|
18
.github/workflows/pr.yml
vendored
18
.github/workflows/pr.yml
vendored
|
@ -7,24 +7,6 @@ on:
|
|||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build & lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
- name: Install dependencies
|
||||
uses: bahmutov/npm-install@v1
|
||||
|
||||
- name: Run lint
|
||||
run: yarn lint
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
release:
|
||||
name: Release snapshot
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue