Skip to content

Commit

Permalink
Merge pull request #11018 from rancher/richard-cox-2.8-drone
Browse files Browse the repository at this point in the history
[2.8] Port drone build tasks to gh workflows + actions
  • Loading branch information
richard-cox committed May 20, 2024
2 parents c8431af + e80e4dd commit 0a03a0c
Show file tree
Hide file tree
Showing 18 changed files with 334 additions and 351 deletions.
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

0 comments on commit 0a03a0c

Please sign in to comment.