diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index d086bf84..a5aaf9d6 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -1,4 +1,4 @@ -name: CI-Development +name: Test build on: [pull_request] diff --git a/.github/workflows/publish_artifacts.yml b/.github/workflows/publish_artifacts.yml new file mode 100644 index 00000000..0f137992 --- /dev/null +++ b/.github/workflows/publish_artifacts.yml @@ -0,0 +1,34 @@ +name: Publish artifacts + +on: + pull_request: + types: [ labeled, synchronize ] + +jobs: + build-artifacts: + if: contains(github.event.pull_request.labels.*.name, 'artifact') + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - uses: preactjs/compressed-size-action@v2 + with: + build-script: "build:production" + + # Used to send a comment to the PR with the artifact url + - name: Save PR number + run: | + mkdir -p build/pr_number/ + touch build/pr_number/${{ github.event.number }} + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: limeAppBuild + path: build/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dcecf326..aaa0ec3e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: Run tests on: push: