Skip to content

Commit

Permalink
ci: combine workflows into single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 9, 2024
1 parent c9dd43c commit 744853f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 33 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/tag-and-release.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: 🔖 Tag and Release
name: ⬆️ Test and Deploy Hyper CI Bump

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
inputs:
# See https://github.com/hyper63/hyper-ci-bump#inputs for available inputs for the bump action
Expand All @@ -9,8 +15,36 @@ on:
required: true

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: 📥 Download deps
run: npm i

- name: ⚡ Run Tests
run: npm test
env:
CI: true

release:
needs: [test]
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
concurrency:
group: release
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
Expand All @@ -22,7 +56,7 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x

- name: 🤓 Set Git User
run: |
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 744853f

Please sign in to comment.