- Secure tests on master branch after merge. - Improve build cache hit rates Due to security reason, github only allow reuse cache from - same branch - base branch - default branch Branch Feature-A could not reuse the cache from Feature-B - Developers could run the workflow in their own forked repo before make the PR, this could relieve the runners on upstream repo
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
---
|
|
|
|
name: Check Elixir Release Applications
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
elixir_apps_check:
|
|
runs-on: ubuntu-20.04
|
|
container: hexpm/elixir:1.13.2-erlang-24.2-alpine-3.15.0
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
release_type:
|
|
- cloud
|
|
- edge
|
|
package_type:
|
|
- bin
|
|
- pkg
|
|
edition_type:
|
|
- community
|
|
- enterprise
|
|
exclude:
|
|
- release_type: edge
|
|
package_type: bin
|
|
edition_type: enterprise
|
|
- release_type: edge
|
|
package_type: pkg
|
|
edition_type: enterprise
|
|
|
|
steps:
|
|
- name: install
|
|
run: apk add make bash curl git
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.4.0
|
|
with:
|
|
fetch-depth: 0
|
|
- name: ensure rebar
|
|
run: ./scripts/ensure-rebar3.sh 3.16.1-emqx-1
|
|
- name: check applications
|
|
run: ./scripts/check-elixir-applications.exs
|
|
env:
|
|
EMQX_RELEASE_TYPE: ${{ matrix.release_type }}
|
|
EMQX_PACKAGE_TYPE: ${{ matrix.package_type }}
|
|
EMQX_EDITION_TYPE: ${{ matrix.edition_type }}
|
|
|
|
...
|