separate test & release
This commit is contained in:
parent
43b03b2740
commit
7d1f729bac
2 changed files with 34 additions and 8 deletions
32
.github/workflows/release-dev.yml
vendored
Normal file
32
.github/workflows/release-dev.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Node.js CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, automate_gh_release ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-dev:
|
||||||
|
name: release dev
|
||||||
|
needs: test-matrix
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [14.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: npm install
|
||||||
|
- run: npm install -g --save-dev shadow-cljs
|
||||||
|
- run: shadow-cljs release app
|
||||||
|
- run: rm -rf target/npm-build
|
||||||
|
- run: mkdir target/npm-build
|
||||||
|
- run: cp mastodon-bot.js target/npm-build/
|
||||||
|
- run: cp package.json target/npm-build/
|
||||||
|
- run: cp README.md target/npm-build/
|
||||||
|
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .
|
10
.github/workflows/test-matrix.yml
vendored
10
.github/workflows/test-matrix.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test-matrix:
|
||||||
|
name: matrix test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -22,10 +23,3 @@ jobs:
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm install -g --save-dev shadow-cljs
|
- run: npm install -g --save-dev shadow-cljs
|
||||||
- run: shadow-cljs compile test
|
- run: shadow-cljs compile test
|
||||||
- run: shadow-cljs release app
|
|
||||||
- run: rm -rf target/npm-build
|
|
||||||
- run: mkdir target/npm-build
|
|
||||||
- run: cp mastodon-bot.js target/npm-build/
|
|
||||||
- run: cp package.json target/npm-build/
|
|
||||||
- run: cp README.md target/npm-build/
|
|
||||||
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .
|
|
||||||
|
|
Reference in a new issue