Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.8] Port drone build tasks to gh workflows + actions #11018

Merged
merged 8 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
267 changes: 0 additions & 267 deletions .drone.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/actions/i18n-lint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Run i18n Lint
description: Run i18n Lint

runs:
using: 'composite'
steps:
- name: Setup env
uses: ./.github/actions/setup

- name: Run i18n linters
shell: bash
run: yarn lint-l10n
12 changes: 12 additions & 0 deletions .github/actions/lint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Run Lint
description: Run Lint

runs:
using: 'composite'
steps:
- name: Setup env
uses: ./.github/actions/setup

- name: Run linters
shell: bash
run: yarn lint
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Setup UI Env
description: Setup node, python and call bootstrap script

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
with:
node-version: '14.x'
cache: 'yarn'

- name: Install packages
shell: bash
run: yarn install:ci
14 changes: 14 additions & 0 deletions .github/actions/unit-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run Unit Tests
description: Run Unit Tests

runs:
using: 'composite'
steps:
- name: Setup env
uses: ./.github/actions/setup

- name: Run tests
shell: bash
run: |
yarn test:ci
21 changes: 21 additions & 0 deletions .github/workflows/build-and-upload-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build Dashboard (Branch)
on:
push:
branches:
- 'release-2.8*'
- '*-dev'

jobs:
build-validation:
name: Build Test
uses: ./.github/workflows/build-test.yaml
build:
name: Build and Upload
uses: ./.github/workflows/build-and-upload.yaml
needs:
- build-validation
permissions:
contents: 'read'
id-token: 'write'
with:
CI_BRANCH: ${{github.ref_name}}
20 changes: 20 additions & 0 deletions .github/workflows/build-and-upload-release-2-8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build Dashboard 2.8 (Release)
on:
push:
tags:
- v2.8.*

jobs:
build-validation:
name: Validate Code
uses: ./.github/workflows/build-test.yaml
build:
name: Build and Upload
uses: ./.github/workflows/build-and-upload.yaml
needs:
- build-validation
permissions:
contents: 'read'
id-token: 'write'
with:
CI_BUILD_TAG: ${{github.ref_name}}
Loading
Loading