Skip to content

ci: implementing new workflow using kash repository #21

ci: implementing new workflow using kash repository

ci: implementing new workflow using kash repository #21

Workflow file for this run

name: Run tests
on:
push:
branches:
- gha
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
node: [ 16, 18, 20 ]
name: Tests / Node ${{ matrix.node }}
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
- name: Init runner
run: bash ./scripts/init_runner.sh ${{ github.job }}
- name: Setup workspace
env:
GITHUB_DEVELOPMENT_PAT: ${{ secrets.GH_DEVELOPMENT_PAT }}
run: bash ./scripts/setup_workspace.sh -k klifull -n ${{ matrix.node }}
- name: Run tests
env:
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
run: bash ./scripts/run_tests.sh -n ${{ matrix.node }}
slack_notification:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [run_tests]
steps:
- name: Run tests
env:
TEST_RESULT: ${{ needs.run_tests.result }}
SLACK_WEBHOOK_LIBS: ${{ secrets.SLACK_WEBHOOK_LIBS }}
run: bash ./scripts/slack_notification.sh