aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2021-12-16 14:00:21 -0500
committerMax Isom <[email protected]>2021-12-16 14:00:21 -0500
commitea6367ccdc1e62da8e83c5e0be02328d5b23f8dd (patch)
tree0cc7090ef23d91c8a629526c07d8a5057d7f86e3
parent7c1e860c50587765c2dd4fa1e5deb28337ca2551 (diff)
downloadmuse-ea6367ccdc1e62da8e83c5e0be02328d5b23f8dd.tar.xz
muse-ea6367ccdc1e62da8e83c5e0be02328d5b23f8dd.zip
Build every commit
-rw-r--r--.github/workflows/build.yml51
-rw-r--r--.github/workflows/pr.yml18
2 files changed, 24 insertions, 45 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f181dc0..5eea299 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 313ef19..48646e6 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -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