diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a88cd56..48000fba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,9 @@ name: CI -on: - push: - branches: [main] jobs: - build: + test: + on: [pull_request] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -14,10 +12,14 @@ jobs: node-version: '14' cache: 'yarn' - run: yarn install --frozen-lockfile + - run: yarn build - run: yarn test deploy: - needs: build + on: + push: + branches: [main] + needs: test runs-on: ubuntu-latest environment: production steps: