Преглед на файлове

github: use different file to define PR checks [skip ci]

Victor Seva преди 3 години
родител
ревизия
bb1a806958
променени са 2 файла, в които са добавени 33 реда и са изтрити 3 реда
  1. 0 3
      .github/workflows/main.yml
  2. 33 0
      .github/workflows/pull_request.yml

+ 0 - 3
.github/workflows/main.yml

@@ -6,9 +6,6 @@ name: build
       - master
       - '5.6'
       - '5.5'
-  pull_request:
-    branches:
-      - master
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
 jobs:

+ 33 - 0
.github/workflows/pull_request.yml

@@ -0,0 +1,33 @@
+---
+name: checks_pr
+'on':
+  pull_request:
+    branches:
+      - master
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container:
+      image: kamailio/pkg-kamailio-docker:master-${{ matrix.distribution }}
+      volumes:
+        - ${{ github.workspace }}:/code
+      env:
+        DIST: ${{ matrix.distribution }}
+        CC: ${{ matrix.compilier }}
+    strategy:
+      matrix:
+        include:
+          - distribution: bullseye
+            compilier: gcc
+          - distribution: bullseye
+            compilier: clang
+    steps:
+      - uses: actions/checkout@v2
+      - uses: ammaraskar/[email protected]
+      - name: build
+        run: |
+          cd /code
+          ./test/travis/build_travis.sh
+        shell: bash