Skip to content

Commit

Permalink
Fix Release branch handling by workflow in Master (#300)
Browse files Browse the repository at this point in the history
* Fix Release branch handling by workflow in Master

* Disable macOS step

* Remove dependency on macOS step

Co-authored-by: Plamen Ivanov <plamen.ivanov@jet.computer>
  • Loading branch information
plameniv and plameniv authored Nov 19, 2021
1 parent 8514428 commit b6e7806
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Cookie Cutter Build Workflow

on:
push:
branches: [ master, develop, ^release/.*$]
branches: [ master, develop, 'release/**']
pull_request:
branches: [ master, develop, ^release/.*$ ]
branches: [ master, develop, 'release/**' ]
schedule:
- cron: '0 4 * * *'

Expand Down Expand Up @@ -67,28 +67,29 @@ jobs:
- name: Yarn Test
run: yarn test

test-macOS:
name: MacOS Node 10 Test
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: smoke
runs-on: macOS-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup MacOS Node 10
uses: actions/setup-node@v2-beta
with:
node-version: "10"
- name: Install Yarn 1.21.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn set version 1.21.1
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Yarn Build
run: yarn build
- name: Yarn Test
run: yarn test
# Disable until we can move to Yarn 2
# test-macOS:
# name: MacOS Node 10 Test
# if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
# needs: smoke
# runs-on: macOS-latest
# steps:
# - name: Checkout Code
# uses: actions/checkout@v2
# - name: Setup MacOS Node 10
# uses: actions/setup-node@v2-beta
# with:
# node-version: "10"
# - name: Install Yarn 1.21.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: yarn set version 1.21.1
# - name: Install Dependencies
# run: yarn install --frozen-lockfile
# - name: Yarn Build
# run: yarn build
# - name: Yarn Test
# run: yarn test

test-windows:
name: Windows Node 10 Test
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
integration-mssql:
name: MSSQL Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -137,7 +138,7 @@ jobs:
integration-amqp:
name: AMQP Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -158,7 +159,7 @@ jobs:
integration-kafka:
name: Kafka Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -179,7 +180,7 @@ jobs:
integration-prometheus:
name: Prometheus Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -200,7 +201,7 @@ jobs:
integration-s3:
name: S3 Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -221,7 +222,7 @@ jobs:
integration-redis:
name: Redis Integration
if: ${{ github.event_name == 'schedule' || ( github.event_name == 'pull_request' && ( github.base_ref == 'master' || contains(needs.smoke.outputs.commit_message, '[full ci]') || contains(needs.smoke.outputs.commit_message, '[full-ci]') ) ) }}
needs: [test-ubuntu, test-macOS, test-windows]
needs: [test-ubuntu, test-windows]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down

0 comments on commit b6e7806

Please sign in to comment.