]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
.github/workflows: Add github workflows checks 1137/head
authorCezar Craciunoiu <cezar.craciunoiu@gmail.com>
Sat, 14 Oct 2023 09:22:13 +0000 (12:22 +0300)
committerCezar Craciunoiu <cezar.craciunoiu@gmail.com>
Thu, 2 Nov 2023 15:28:58 +0000 (17:28 +0200)
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
.github/workflows/actcheck.yaml [new file with mode: 0644]

diff --git a/.github/workflows/actcheck.yaml b/.github/workflows/actcheck.yaml
new file mode 100644 (file)
index 0000000..292fdc0
--- /dev/null
@@ -0,0 +1,23 @@
+name: actionlint
+
+on:
+  pull_request:
+    types: [opened, synchronize, reopened]
+    branches: [staging]
+    paths:
+      - '.github/workflows/**'
+
+jobs:
+  action-lint:
+    runs-on: ubuntu-latest
+    name: Action Lint
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Install action linter
+        run: |
+          mkdir -p "$HOME"/.local/bin
+          curl -sL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash -s -- latest "$HOME"/.local/bin
+
+      - name: Check that all workflows are valid
+        run: actionlint -verbose