mirror of
https://github.com/brucificus/vb6-antlr4-typescript.git
synced 2025-12-17 04:14:36 +03:00
👷 Adds Rudimentary Continuous Delivery Pipeline
This commit is contained in:
42
.github/workflows/pull_request_checks.yml
vendored
Normal file
42
.github/workflows/pull_request_checks.yml
vendored
Normal 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
50
.github/workflows/release.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user