From 6c0b46ccb7ca80ac3555c2453043599e5042abcc Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 23 Dec 2021 00:09:03 +0100 Subject: [PATCH] Don't run all workflows on tags --- .github/workflows/cli-publish.yml | 6 ++++-- .github/workflows/cli-test.yml | 7 +++++-- .github/workflows/containers-publish.yml | 7 +++++-- .github/workflows/containers-test.yml | 4 +++- .github/workflows/lesspass-crypto-publish.yml | 6 ++++-- .github/workflows/lesspass-crypto-test.yml | 4 +++- .github/workflows/lesspass-entropy-publish.yml | 6 ++++-- .github/workflows/lesspass-entropy-test.yml | 6 ++++-- .github/workflows/lesspass-fingerprint-publish.yml | 6 ++++-- .github/workflows/lesspass-fingerprint-test.yml | 6 ++++-- .github/workflows/lesspass-publish.yml | 6 ++++-- .github/workflows/lesspass-pure-publish.yml | 6 ++++-- .github/workflows/lesspass-pure-test.yml | 6 ++++-- .github/workflows/lesspass-render-password-publish.yml | 6 ++++-- .github/workflows/lesspass-render-password-test.yml | 2 ++ .github/workflows/lesspass-test.yml | 4 +++- .github/workflows/lesspass-web-extension-publish.yml | 2 ++ .github/workflows/mobile-test.yml | 2 ++ 18 files changed, 65 insertions(+), 27 deletions(-) diff --git a/.github/workflows/cli-publish.yml b/.github/workflows/cli-publish.yml index 6802415..3c4d843 100644 --- a/.github/workflows/cli-publish.yml +++ b/.github/workflows/cli-publish.yml @@ -1,8 +1,10 @@ name: cli-publish on: workflow_run: - workflows: ["cli-test"] - branches: [main] + workflows: + - "cli-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/cli-test.yml b/.github/workflows/cli-test.yml index 537dbc8..ad8c043 100644 --- a/.github/workflows/cli-test.yml +++ b/.github/workflows/cli-test.yml @@ -1,6 +1,8 @@ name: cli-test on: push: + branches: + - main paths: - "cli/**" pull_request: @@ -20,5 +22,6 @@ jobs: - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - run: cd cli - - run: ./test + - run: | + cd cli + ./test diff --git a/.github/workflows/containers-publish.yml b/.github/workflows/containers-publish.yml index f7f139d..03df39e 100644 --- a/.github/workflows/containers-publish.yml +++ b/.github/workflows/containers-publish.yml @@ -1,12 +1,15 @@ name: containers-publish on: workflow_run: - workflows: ["containers-test"] - branches: [main] + workflows: + - "containers-test" + branches: + - main types: - completed jobs: publish: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/containers-test.yml b/.github/workflows/containers-test.yml index bea5fcc..1e2db54 100644 --- a/.github/workflows/containers-test.yml +++ b/.github/workflows/containers-test.yml @@ -1,6 +1,8 @@ name: containers-test on: push: + branches: + - main paths: - "containers/**" - "packages/lesspass-site/**" @@ -29,7 +31,7 @@ jobs: with: node-version: "14" - run: yarn install - - run: yarn workspace lesspass-site run test + - run: yarn workspace lesspass-site test test-integration: runs-on: ubuntu-18.04 steps: diff --git a/.github/workflows/lesspass-crypto-publish.yml b/.github/workflows/lesspass-crypto-publish.yml index cdf5687..1ee326d 100644 --- a/.github/workflows/lesspass-crypto-publish.yml +++ b/.github/workflows/lesspass-crypto-publish.yml @@ -1,8 +1,10 @@ name: lesspass-crypto-publish on: workflow_run: - workflows: ["lesspass-crypto-test"] - branches: [main] + workflows: + - "lesspass-crypto-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-crypto-test.yml b/.github/workflows/lesspass-crypto-test.yml index aa894f2..bdcf38d 100644 --- a/.github/workflows/lesspass-crypto-test.yml +++ b/.github/workflows/lesspass-crypto-test.yml @@ -1,6 +1,8 @@ name: lesspass-crypto-test on: push: + branches: + - main paths: - "packages/lesspass-crypto/**" pull_request: @@ -15,4 +17,4 @@ jobs: with: node-version: "14" - run: yarn install - - run: yarn workspace lesspass-crypto run test + - run: yarn workspace lesspass-crypto test diff --git a/.github/workflows/lesspass-entropy-publish.yml b/.github/workflows/lesspass-entropy-publish.yml index 491ee01..220c6d2 100644 --- a/.github/workflows/lesspass-entropy-publish.yml +++ b/.github/workflows/lesspass-entropy-publish.yml @@ -1,8 +1,10 @@ name: lesspass-entropy-publish on: workflow_run: - workflows: ["lesspass-entropy-test"] - branches: [main] + workflows: + - "lesspass-entropy-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-entropy-test.yml b/.github/workflows/lesspass-entropy-test.yml index 196c91d..199f161 100644 --- a/.github/workflows/lesspass-entropy-test.yml +++ b/.github/workflows/lesspass-entropy-test.yml @@ -1,6 +1,8 @@ name: lesspass-entropy-test on: push: + branches: + - main paths: - "packages/lesspass-entropy/**" pull_request: @@ -15,5 +17,5 @@ jobs: with: node-version: "14" - run: yarn install - - run: yarn workspace lesspass-crypto run build - - run: yarn workspace lesspass-entropy run test + - run: yarn workspace lesspass-crypto build + - run: yarn workspace lesspass-entropy test diff --git a/.github/workflows/lesspass-fingerprint-publish.yml b/.github/workflows/lesspass-fingerprint-publish.yml index 3f8967f..6d9d267 100644 --- a/.github/workflows/lesspass-fingerprint-publish.yml +++ b/.github/workflows/lesspass-fingerprint-publish.yml @@ -1,8 +1,10 @@ name: lesspass-fingerprint-publish on: workflow_run: - workflows: ["lesspass-fingerprint-test"] - branches: [main] + workflows: + - "lesspass-fingerprint-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-fingerprint-test.yml b/.github/workflows/lesspass-fingerprint-test.yml index 8401b34..45467a9 100644 --- a/.github/workflows/lesspass-fingerprint-test.yml +++ b/.github/workflows/lesspass-fingerprint-test.yml @@ -1,6 +1,8 @@ name: lesspass-fingerprint-test on: push: + branches: + - main paths: - "packages/lesspass-fingerprint/**" pull_request: @@ -16,5 +18,5 @@ jobs: node-version: "14" registry-url: "https://registry.npmjs.org" - run: yarn install - - run: yarn workspace lesspass-crypto run build - - run: yarn workspace lesspass-fingerprint run test + - run: yarn workspace lesspass-crypto build + - run: yarn workspace lesspass-fingerprint test diff --git a/.github/workflows/lesspass-publish.yml b/.github/workflows/lesspass-publish.yml index dd2ba94..5fafd6b 100644 --- a/.github/workflows/lesspass-publish.yml +++ b/.github/workflows/lesspass-publish.yml @@ -1,8 +1,10 @@ name: lesspass-publish on: workflow_run: - workflows: ["lesspass-test"] - branches: [main] + workflows: + - "lesspass-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-pure-publish.yml b/.github/workflows/lesspass-pure-publish.yml index 24af180..19e47a3 100644 --- a/.github/workflows/lesspass-pure-publish.yml +++ b/.github/workflows/lesspass-pure-publish.yml @@ -1,8 +1,10 @@ name: lesspass-pure-publish on: workflow_run: - workflows: ["lesspass-pure-test"] - branches: [main] + workflows: + - "lesspass-pure-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-pure-test.yml b/.github/workflows/lesspass-pure-test.yml index ddf4716..555219b 100644 --- a/.github/workflows/lesspass-pure-test.yml +++ b/.github/workflows/lesspass-pure-test.yml @@ -1,6 +1,8 @@ name: lesspass-pure-test on: push: + branches: + - main paths: - "packages/lesspass-pure/**" pull_request: @@ -15,5 +17,5 @@ jobs: with: node-version: "14" - run: yarn install - - run: yarn workspace lesspass-crypto run build - - run: yarn workspace lesspass-pure run test + - run: yarn workspace lesspass-crypto build + - run: yarn workspace lesspass-pure test diff --git a/.github/workflows/lesspass-render-password-publish.yml b/.github/workflows/lesspass-render-password-publish.yml index 8befe1d..824dafc 100644 --- a/.github/workflows/lesspass-render-password-publish.yml +++ b/.github/workflows/lesspass-render-password-publish.yml @@ -1,8 +1,10 @@ name: lesspass-render-password-publish on: workflow_run: - workflows: ["lesspass-render-password-test"] - branches: [main] + workflows: + - "lesspass-render-password-test" + branches: + - main types: - completed jobs: diff --git a/.github/workflows/lesspass-render-password-test.yml b/.github/workflows/lesspass-render-password-test.yml index 761ce72..3f457b6 100644 --- a/.github/workflows/lesspass-render-password-test.yml +++ b/.github/workflows/lesspass-render-password-test.yml @@ -1,6 +1,8 @@ name: lesspass-render-password-test on: push: + branches: + - main paths: - "packages/lesspass-render-password/**" pull_request: diff --git a/.github/workflows/lesspass-test.yml b/.github/workflows/lesspass-test.yml index f82f263..2859d02 100644 --- a/.github/workflows/lesspass-test.yml +++ b/.github/workflows/lesspass-test.yml @@ -1,6 +1,8 @@ name: lesspass-test on: push: + branches: + - main paths: - "packages/lesspass/**" pull_request: @@ -15,4 +17,4 @@ jobs: with: node-version: "14" - run: yarn install - - run: yarn workspace lesspass run test + - run: yarn workspace lesspass test diff --git a/.github/workflows/lesspass-web-extension-publish.yml b/.github/workflows/lesspass-web-extension-publish.yml index 3e16815..dd17d98 100644 --- a/.github/workflows/lesspass-web-extension-publish.yml +++ b/.github/workflows/lesspass-web-extension-publish.yml @@ -1,6 +1,8 @@ name: lesspass-web-extension-publish on: push: + branches: + - main paths: - "packages/lesspass-web-extension/**" jobs: diff --git a/.github/workflows/mobile-test.yml b/.github/workflows/mobile-test.yml index 660a8d9..25e0729 100644 --- a/.github/workflows/mobile-test.yml +++ b/.github/workflows/mobile-test.yml @@ -1,6 +1,8 @@ name: mobile-test on: push: + branches: + - main paths: - "mobile/**" pull_request: