Fix CI for pull requests (#259)

0430fb6 · Paulo F. Oliveira · 2024-02-29 22:03

4 files +35 -4

Files changed

modified .github/workflows/action.yml
+9 −1
@@ -1,7 +1,14 @@
1 1 ---
2 2 name: action
3 3
4 on: [push, workflow_dispatch]
4 +on:
5 + push:
6 + branches:
7 + - main
8 + pull_request:
9 + branches:
10 + - "*"
11 + workflow_dispatch: {}
5 12
6 13 env:
7 14 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -27,6 +34,7 @@ jobs:
27 34 git add dist/index.js
28 35 git commit -m "Automation: update setup-beam version output to ${SHA}"
29 36 git push origin main
37 +
30 38 check_integrity:
31 39 name: Expected local npm actions
32 40 runs-on: ubuntu-latest
modified .github/workflows/hexpm-mirrors.yml
+8 −1
@@ -1,7 +1,14 @@
1 1 ---
2 2 name: hexpm-mirrors
3 3
4 on: [push, workflow_dispatch]
4 +on:
5 + push:
6 + branches:
7 + - main
8 + pull_request:
9 + branches:
10 + - "*"
11 + workflow_dispatch: {}
5 12
6 13 jobs:
7 14 test-failing-first-mirror:
modified .github/workflows/ubuntu.yml
+9 −1
@@ -1,7 +1,14 @@
1 1 ---
2 2 name: ubuntu
3 3
4 on: [push, workflow_dispatch]
4 +on:
5 + push:
6 + branches:
7 + - main
8 + pull_request:
9 + branches:
10 + - "*"
11 + workflow_dispatch: {}
5 12
6 13 jobs:
7 14 integration_test:
@@ -174,6 +181,7 @@ jobs:
174 181 mix escript.install --force ${{matrix.combo.escript_packages}}
175 182 ${{matrix.combo.escript_script}}
176 183 if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}}
184 +
177 185 environment_variables:
178 186 name: Environment variables
179 187 runs-on: ${{matrix.combo.os}}
modified .github/workflows/windows.yml
+9 −1
@@ -1,7 +1,14 @@
1 1 ---
2 2 name: windows
3 3
4 on: [push, workflow_dispatch]
4 +on:
5 + push:
6 + branches:
7 + - main
8 + pull_request:
9 + branches:
10 + - "*"
11 + workflow_dispatch: {}
5 12
6 13 jobs:
7 14 integration_test:
@@ -112,6 +119,7 @@ jobs:
112 119 mix escript.install --force ${{matrix.combo.escript_packages}}
113 120 ${{matrix.combo.escript_script}}
114 121 if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}}
122 +
115 123 environment_variables:
116 124 name: Environment variables
117 125 runs-on: ${{matrix.combo.os}}

Parents: 48f1d0c