And how to get there from
on: pull_request: push: paths-ignore: - 'web/**' branches: - master - dev
Run on all pull requests
Run on push...
But only if there is changes
outside the web folder
And only run if in master or dev branch
jobs:
test:
steps:
- name: Set NPM token
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Yarn add private packages
run: yarn install
on:
pull_request:
push:
branches:
- master
jobs:
job1:
job2:
needs: job1
job3:
needs: [job1, job2]
on:
push:
paths-ignore:
- 'docs/**'
on:
push:
paths:
- 'packages/web/**'
jobs:
test:
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres_pass
POSTGRES_DB: database_name
ports:
- 5432:5432