-
Notifications
You must be signed in to change notification settings - Fork 92
31 lines (27 loc) · 898 Bytes
/
nodejs.yml
File metadata and controls
31 lines (27 loc) · 898 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
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12', '14']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Verify lockfile and install dependencies
run: yarn install --frozen-lockfile
- name: lint
run: yarn lint
- name: test
env: # twitter keys to run tests
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
if: env.TWITTER_CONSUMER_KEY
run: yarn test