From 0430fb6cc69a1a0309f04b404a31b2790d015d6b Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Thu, 29 Feb 2024 22:00:02 +0000 Subject: [PATCH] Fix CI for pull requests (#259) --- .github/workflows/action.yml | 10 +++++++++- .github/workflows/hexpm-mirrors.yml | 9 ++++++++- .github/workflows/ubuntu.yml | 10 +++++++++- .github/workflows/windows.yml | 10 +++++++++- 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 85469dd5..949cbf76 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,7 +1,14 @@ --- name: action -on: [push, workflow_dispatch] +on: + push: + branches: + - main + pull_request: + branches: + - "*" + workflow_dispatch: {} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -27,6 +34,7 @@ jobs: git add dist/index.js git commit -m "Automation: update setup-beam version output to ${SHA}" git push origin main + check_integrity: name: Expected local npm actions runs-on: ubuntu-latest diff --git a/.github/workflows/hexpm-mirrors.yml b/.github/workflows/hexpm-mirrors.yml index c71c26a0..45eecd3e 100644 --- a/.github/workflows/hexpm-mirrors.yml +++ b/.github/workflows/hexpm-mirrors.yml @@ -1,7 +1,14 @@ --- name: hexpm-mirrors -on: [push, workflow_dispatch] +on: + push: + branches: + - main + pull_request: + branches: + - "*" + workflow_dispatch: {} jobs: test-failing-first-mirror: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7bcf4073..4736304c 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,7 +1,14 @@ --- name: ubuntu -on: [push, workflow_dispatch] +on: + push: + branches: + - main + pull_request: + branches: + - "*" + workflow_dispatch: {} jobs: integration_test: @@ -174,6 +181,7 @@ jobs: mix escript.install --force ${{matrix.combo.escript_packages}} ${{matrix.combo.escript_script}} if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}} + environment_variables: name: Environment variables runs-on: ${{matrix.combo.os}} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 08741516..4768d969 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,7 +1,14 @@ --- name: windows -on: [push, workflow_dispatch] +on: + push: + branches: + - main + pull_request: + branches: + - "*" + workflow_dispatch: {} jobs: integration_test: @@ -112,6 +119,7 @@ jobs: mix escript.install --force ${{matrix.combo.escript_packages}} ${{matrix.combo.escript_script}} if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}} + environment_variables: name: Environment variables runs-on: ${{matrix.combo.os}}