Remove install pro in pipelines

This commit is contained in:
adrinr 2023-04-11 17:16:04 +01:00
parent fd538e0aad
commit 7d792e22bd
3 changed files with 65 additions and 79 deletions

View File

@ -1,34 +1,34 @@
name: Budibase CI name: Budibase CI
on: on:
# Trigger the workflow on push or pull request, # Trigger the workflow on push or pull request,
# but only for the master branch # but only for the master branch
push: push:
branches:
- master
- develop
pull_request:
branches: branches:
- master - master
- develop - develop
workflow_dispatch: pull_request:
branches:
- master
- develop
workflow_dispatch:
env: env:
BRANCH: ${{ github.event.pull_request.head.ref }} BRANCH: ${{ github.event.pull_request.head.ref }}
BASE_BRANCH: ${{ github.event.pull_request.base.ref}} BASE_BRANCH: ${{ github.event.pull_request.base.ref}}
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 14.x - name: Use Node.js 14.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.x node-version: 14.x
- run: yarn - run: yarn
- run: yarn lint - run: yarn lint
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -38,8 +38,6 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro
run: yarn install:pro $BRANCH $BASE_BRANCH
- run: yarn - run: yarn
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn build - run: yarn build
@ -52,8 +50,6 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro
run: yarn install:pro $BRANCH $BASE_BRANCH
- run: yarn - run: yarn
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn test - run: yarn test
@ -71,8 +67,6 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro
run: yarn install:pro $BRANCH $BASE_BRANCH
- run: yarn - run: yarn
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn test:pro - run: yarn test:pro
@ -85,8 +79,6 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro
run: yarn install:pro $BRANCH $BASE_BRANCH
- run: yarn && yarn bootstrap && yarn build - run: yarn && yarn bootstrap && yarn build
- run: | - run: |
cd qa-core cd qa-core
@ -94,4 +86,4 @@ jobs:
yarn test:ci yarn test:ci
env: env:
BB_ADMIN_USER_EMAIL: admin BB_ADMIN_USER_EMAIL: admin
BB_ADMIN_USER_PASSWORD: admin BB_ADMIN_USER_PASSWORD: admin

View File

@ -1,21 +1,21 @@
name: Budibase Prerelease name: Budibase Prerelease
concurrency: release-prerelease concurrency: release-prerelease
on: on:
push: push:
branches: branches:
- develop - develop
paths: paths:
- '.aws/**' - ".aws/**"
- '.github/**' - ".github/**"
- 'charts/**' - "charts/**"
- 'packages/**' - "packages/**"
- 'scripts/**' - "scripts/**"
- 'package.json' - "package.json"
- 'yarn.lock' - "yarn.lock"
- 'package.json' - "package.json"
- 'yarn.lock' - "yarn.lock"
workflow_dispatch: workflow_dispatch:
env: env:
# Posthog token used by ui at build time # Posthog token used by ui at build time
@ -24,15 +24,15 @@ env:
INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }} INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
FEATURE_PREVIEW_URL: https://budirelease.live FEATURE_PREVIEW_URL: https://budirelease.live
jobs: jobs:
release-images: release-images:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fail if branch is not develop - name: Fail if branch is not develop
if: github.ref != 'refs/heads/develop' if: github.ref != 'refs/heads/develop'
run: | run: |
echo "Ref is not develop, you must run this job from develop." echo "Ref is not develop, you must run this job from develop."
exit 1 exit 1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -40,19 +40,16 @@ jobs:
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro - run: yarn
run: yarn install:pro develop
- run: yarn
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn build - run: yarn build
- run: yarn build:sdk - run: yarn build:sdk
# - run: yarn test # - run: yarn test
- name: Publish budibase packages to NPM - name: Publish budibase packages to NPM
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: | run: |
# setup the username and email. # setup the username and email.
git config --global user.name "Budibase Staging Release Bot" git config --global user.name "Budibase Staging Release Bot"
git config --global user.email "<>" git config --global user.email "<>"
@ -60,7 +57,7 @@ jobs:
yarn release:develop yarn release:develop
- name: Build/release Docker images - name: Build/release Docker images
run: | run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
yarn build yarn build
yarn build:docker:develop yarn build:docker:develop

View File

@ -2,45 +2,45 @@ name: Budibase Release
concurrency: release concurrency: release
on: on:
push: push:
branches: branches:
- master - master
paths: paths:
- '.aws/**' - ".aws/**"
- '.github/**' - ".github/**"
- 'charts/**' - "charts/**"
- 'packages/**' - "packages/**"
- 'scripts/**' - "scripts/**"
- 'package.json' - "package.json"
- 'yarn.lock' - "yarn.lock"
- 'package.json' - "package.json"
- 'yarn.lock' - "yarn.lock"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
versioning: versioning:
type: choice type: choice
description: "Versioning type: patch, minor, major" description: "Versioning type: patch, minor, major"
default: patch default: patch
options: options:
- patch - patch
- minor - minor
- major - major
required: true required: true
env: env:
# Posthog token used by ui at build time # Posthog token used by ui at build time
POSTHOG_TOKEN: phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU POSTHOG_TOKEN: phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU
INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }} INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
jobs: jobs:
release-images: release-images:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fail if branch is not master - name: Fail if branch is not master
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/master'
run: | run: |
echo "Ref is not master, you must run this job from master." echo "Ref is not master, you must run this job from master."
exit 1 exit 1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -48,9 +48,6 @@ jobs:
with: with:
node-version: 14.x node-version: 14.x
- name: Install Pro
run: yarn install:pro master
- run: yarn - run: yarn
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn lint - run: yarn lint
@ -68,12 +65,12 @@ jobs:
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
yarn release yarn release
- name: 'Get Previous tag' - name: "Get Previous tag"
id: previoustag id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1" uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Build/release Docker images - name: Build/release Docker images
run: | run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
yarn build yarn build
yarn build:docker yarn build:docker