👷 Adds Rudimentary Continuous Delivery Pipeline

This commit is contained in:
Bruce Markham
2020-03-15 20:44:27 -04:00
parent f2871069bc
commit 5ee5d2209a
6 changed files with 147 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
name: Build & Test
on:
pull_request:
branches:
- master
- alpha
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@2.1.1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm ci
run: |
npm ci
env:
CI: true
- name: npm build & test
run: |
npm run build
npm run test
env:
CI: true

50
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Release
on:
push:
branches:
- master
- alpha
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@2.1.1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm ci
run: |
npm ci
env:
CI: true
- name: npm build & test
run: |
npm run build
npm run test
env:
CI: true
- name: npm semantic-release
run: |
npm run semantic-release
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}