Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
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
2 changes: 2 additions & 0 deletions .github/workflows/build_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: hmarr/debug-action@v2.1.0

- name: "Checkout codebase"
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- uses: actions/setup-node@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cancel_cicd_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: "Cancel PR CI/CD pipeline"

on:
pull_request_target:
pull_request:
types:
- closed
- converted_to_draft
- locked
branches:
- develop
- master
- 'lse-release/**'
- 'ls-release/**'

concurrency:
group: CI/CD Pipeline-${{ github.event.pull_request.number || github.event.pull_request.head.ref || github.ref_name }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/cicd_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.pull_request.head.ref || github.ref_name }}
cancel-in-progress: true

permissions: read-all

jobs:
build_bundle:
name: "Build JS Bundle"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: heartexlabs/label-studio-frontend/.github/workflows/build_bundle.yml@master
permissions:
contents: write
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}

run_e2e:
name: "Tests"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: heartexlabs/label-studio-frontend/.github/workflows/e2e_tests.yml@master
permissions:
contents: write
needs:
- build_bundle
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: hmarr/debug-action@v2.1.0

- name: "Checkout codebase"
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- uses: actions/setup-node@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: hmarr/debug-action@v2.1.0

- name: "Checkout codebase"
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- name: "Setup NodeJS"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: hmarr/debug-action@v2.1.0

- name: "Checkout codebase"
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- name: "Setup NodeJS"
Expand Down