-
Notifications
You must be signed in to change notification settings - Fork 33
48 lines (43 loc) · 1.24 KB
/
ci-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Zero G CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
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: zerog-ci
# - name: Set ENV variable
# run: echo "::set-env name=GIT_BRANCH::${GIT_BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')}"
- 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