Skip to content

Commit

Permalink
ci: Test weekly that the Dockerfile in web is able to build the brows…
Browse files Browse the repository at this point in the history
…er extensions
  • Loading branch information
torokati44 authored and Dinnerbone committed Nov 3, 2023
1 parent dad3963 commit 8f15aa3
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test_extension_dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test extension builder Dockerfile

on:
#Run weekly every Thursday (one day before AMO submission)
schedule:
- cron: "0 2 * * 5"

#Allow for manual tests if needed
workflow_dispatch:

jobs:
test-dockerfile:
name: Test the Dockerfile
runs-on: ubuntu-22.04

if: github.repository == 'ruffle-rs/ruffle'

steps:
- uses: actions/checkout@v4

- name: Generate version seal
env:
ENABLE_VERSION_SEAL: true
working-directory: ./web
run: |
npm install
node packages/core/tools/set_version.js
- name: Build Docker image with Ruffle in it
run: docker build --tag ruffle-web-docker -f web/docker/Dockerfile .

- name: Copy extensions out of Docker image
run: docker cp $(docker create ruffle-web-docker:latest):/ruffle/web/packages web/docker/docker_builds/packages

- name: Check that the Firefox extension was built
run: test -f web/docker/docker_builds/packages/extension/dist/firefox_unsigned.xpi

- name: Notify Discord
uses: th0th/[email protected]
if: ${{ always() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_UPDATES }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Build extension via Dockerfile"
GITHUB_JOB_STATUS: ${{ job.status }}

0 comments on commit 8f15aa3

Please sign in to comment.