-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 972 Bytes
/
validate.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
---
name: JS CI tests
on: [push, pull_request]
jobs:
validate:
name: Validate config
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x ]
env:
SCRAMBLER_SECRET: ${{ secrets.SCRAMBLER_SECRET }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install scrambler tool
run: go install github.com/dbldots/scrambler@latest
- name: Add go bin path to PATH
run: echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Test for scrambler command
run: scrambler help
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn package manger (which we use instead of npm)
run: npm install -g yarn
- name: Run yarn install to bundle project
run: yarn install
- name: Run yarn test to validate structure of index.js
run: yarn test