Cleanup GitHub Actions (#2983)

This is mostly just about naming. Plus removing an unused end-to-end testing workflow.
This commit is contained in:
Hugh Nimmo-Smith
2025-02-06 12:13:08 +00:00
committed by GitHub
parent 4fc7fbe8fe
commit 6dcfdf8d39
7 changed files with 10 additions and 34 deletions

View File

@@ -17,7 +17,7 @@ on:
- "docs/**"
jobs:
build_element_call:
uses: ./.github/workflows/element-call.yaml
uses: ./.github/workflows/lib/build-element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:

View File

@@ -1,24 +0,0 @@
name: Run E2E tests
on:
workflow_run:
workflows: ["deploy"]
types:
- completed
branches-ignore:
- "livekit"
jobs:
e2e:
name: E2E tests runs on Element Call
runs-on: ubuntu-latest
steps:
- name: Check out test private repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
repository: element-hq/static-call-participant
ref: refs/heads/main
path: static-call-participant
token: ${{ secrets.GH_E2E_TEST_TOKEN }}
- name: Build E2E Image
run: "cd static-call-participant && docker build --no-cache --tag matrixdotorg/chrome-node-static-call-participant:latest ."
- name: Run E2E tests in container
run: "docker run --rm -v '${{ github.workspace }}/static-call-participant/callemshost-users.txt:/opt/app/callemshost-users.txt' matrixdotorg/chrome-node-static-call-participant:latest ./e2e.sh"

View File

@@ -1,4 +1,4 @@
name: Docker - Deploy
name: Build and publish docker image
on:
workflow_call:
inputs:

View File

@@ -1,4 +1,4 @@
name: Element Call - Build
name: Build Element Call
on:
workflow_call:
inputs:

View File

@@ -1,4 +1,4 @@
name: Netlify - Deploy
name: Deploy to Netlify
on:
workflow_call:
inputs:

View File

@@ -1,4 +1,4 @@
name: PR Preview Deployments
name: Deploy previews for PRs
on:
workflow_run:
workflows: ["Build"]
@@ -24,7 +24,7 @@ jobs:
needs: prdetails
permissions:
deployments: write
uses: ./.github/workflows/netlify.yaml
uses: ./.github/workflows/lib/deploy-to-netlify.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
pr_number: ${{ needs.prdetails.outputs.pr_number }}
@@ -42,7 +42,7 @@ jobs:
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |

View File

@@ -1,4 +1,4 @@
name: Build & publish images to the package registry for tags
name: Build & publish images to the package registry for releases
on:
release:
@@ -16,7 +16,7 @@ env:
jobs:
build_element_call:
if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/element-call.yaml
uses: ./.github/workflows/lib/build-element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
@@ -62,7 +62,7 @@ jobs:
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |