name: CI on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js uses: actions/setup-node@v1 - name: Install dependencies run: npm install - name: Run validation run: npm run validate - name: Run tests run: npm test