-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 843 Bytes
/
ci.yaml
File metadata and controls
35 lines (27 loc) · 843 Bytes
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
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Collecting NodeJS Version
id: prepare
run: |
version=$(cat .node-version | cut -d'/' -f2)
full_version=$(cat .node-version)
echo "node_version=$version" >> $GITHUB_OUTPUT
echo "Using Node Version : ${version}"
echo "Using Node Full Version : ${full_version}"
- name: Setup NodeJS version
uses: actions/setup-node@v3
with:
node-version: ${{ steps.prepare.outputs.full_version }}
- name: Run linter and test
shell: bash
run: yarn install && yarn run build:ci