Skip to content

Node.js CI

Node.js CI #243

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '37 22 * * 2'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Yarn
run: npm install -g yarn
- name: Install
run: yarn install
- name: Test
env:
TWITTER_USERNAME: ${{ secrets.TWITTER_USERNAME }}
TWITTER_PASSWORD: ${{ secrets.TWITTER_PASSWORD }}
TWITTER_EMAIL: ${{ secrets.TWITTER_EMAIL }}
run: yarn test
- name: Build
run: yarn build