2020-12-09 23:23:08 +01:00
|
|
|
name: Voron CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-09 23:32:42 +01:00
|
|
|
branches: [ Voron2.4 ]
|
2020-12-09 23:23:08 +01:00
|
|
|
pull_request:
|
2020-12-09 23:32:42 +01:00
|
|
|
branches: [ Voron2.4 ]
|
2020-12-09 23:23:08 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x]
|
|
|
|
env:
|
|
|
|
GIT_BRANCH: ${{ github.head_ref }}
|
|
|
|
GIT_PR_BASE_BRANCH: ${{ github.base_ref }}
|
|
|
|
GIT_PULL_REQUEST: ${{ github.event.number }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout Actions
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Cache Folder
|
|
|
|
id: cache-folder
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ci_cache
|
|
|
|
key: voron-ci
|
|
|
|
- name: Print Travis ENV vars
|
|
|
|
run: |
|
|
|
|
echo "GIT_BRANCH: ${GIT_BRANCH}"
|
|
|
|
echo "GIT_PULL_REQUEST: ${GIT_PULL_REQUEST}"
|
|
|
|
- name: Setup NPM
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install NPM scripts
|
|
|
|
run: |
|
|
|
|
npm init -y
|
|
|
|
npm install --global remark-cli remark-validate-links
|
|
|
|
- name: Execute CI
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/VoronDesign/GithubScripts.git .github_scripts
|
|
|
|
/bin/bash ./.github_scripts/workflows/ci-build.sh
|