From ee314881928c22351a4f5a5a227abf25bac9ada6 Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Thu, 13 Jun 2024 11:24:35 -0500 Subject: [PATCH] Add branch testing workflow for devops#62 --- .github/workflows/branch-cicd.yaml | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/branch-cicd.yaml diff --git a/.github/workflows/branch-cicd.yaml b/.github/workflows/branch-cicd.yaml new file mode 100644 index 0000000..b734c2a --- /dev/null +++ b/.github/workflows/branch-cicd.yaml @@ -0,0 +1,51 @@ +# 🏃‍♀️ Continuous Integration and Delivery: Branch Testing +# ====================================================== + + +--- + +name: 🔁 Branch integration testing + + +# Driving Event +# ------------- +# +# What event starts this workflow: a push to any branch other than main + +on: + push: + branches: + - '**' + - '!main' + + +# What to Do +# ---------- +# +# Test the software with tox + +jobs: + branch-testing: + name: 🪵 Branch Testing + runs-on: ubuntu-latest + if: github.actor != 'pdsen-ci' + steps: + - + name: 💳 Checkout + uses: actions/checkout@v3 + with: + lfs: true + fetch-depth: 0 + token: ${{secrets.ADMIN_GITHUB_TOKEN}} + - + name: 🟢 Setup up Node + uses: actions/setup-node@v4 + with: + node-version: 'latest' + - + name: 🩺 Test Software + run: + npm clean-install + npm test + +... \ No newline at end of file