Cleanup GitHub Actions (#2983)
This is mostly just about naming. Plus removing an unused end-to-end testing workflow.
This commit is contained in:
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -17,7 +17,7 @@ on:
|
|||||||
- "docs/**"
|
- "docs/**"
|
||||||
jobs:
|
jobs:
|
||||||
build_element_call:
|
build_element_call:
|
||||||
uses: ./.github/workflows/element-call.yaml
|
uses: ./.github/workflows/lib/build-element-call.yaml
|
||||||
with:
|
with:
|
||||||
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
24
.github/workflows/e2e.yml
vendored
24
.github/workflows/e2e.yml
vendored
@@ -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"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Docker - Deploy
|
name: Build and publish docker image
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Element Call - Build
|
name: Build Element Call
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Netlify - Deploy
|
name: Deploy to Netlify
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
6
.github/workflows/pr-deploy.yaml
vendored
6
.github/workflows/pr-deploy.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: PR Preview Deployments
|
name: Deploy previews for PRs
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Build"]
|
workflows: ["Build"]
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
needs: prdetails
|
needs: prdetails
|
||||||
permissions:
|
permissions:
|
||||||
deployments: write
|
deployments: write
|
||||||
uses: ./.github/workflows/netlify.yaml
|
uses: ./.github/workflows/lib/deploy-to-netlify.yaml
|
||||||
with:
|
with:
|
||||||
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
||||||
pr_number: ${{ needs.prdetails.outputs.pr_number }}
|
pr_number: ${{ needs.prdetails.outputs.pr_number }}
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
uses: ./.github/workflows/docker.yaml
|
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
|
||||||
with:
|
with:
|
||||||
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
||||||
docker_tags: |
|
docker_tags: |
|
||||||
|
|||||||
6
.github/workflows/publish.yaml
vendored
6
.github/workflows/publish.yaml
vendored
@@ -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:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -16,7 +16,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build_element_call:
|
build_element_call:
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
uses: ./.github/workflows/element-call.yaml
|
uses: ./.github/workflows/lib/build-element-call.yaml
|
||||||
with:
|
with:
|
||||||
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
||||||
secrets:
|
secrets:
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
uses: ./.github/workflows/docker.yaml
|
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
|
||||||
with:
|
with:
|
||||||
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
|
||||||
docker_tags: |
|
docker_tags: |
|
||||||
|
|||||||
Reference in New Issue
Block a user