Skip to content

Commit

Permalink
ci: use org level reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex committed Nov 14, 2023
1 parent 2a58d0c commit ed50aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 64 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,5 @@ permissions:
pull-requests: write

jobs:
semantics:
name: Semantics
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

welcome:
name: Welcome
runs-on: ubuntu-latest
timeout-minutes: 10
needs: semantics
if: github.event.action == 'opened'
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |-
Congrats on making your first Pull Request and thanks for taking the time to improve Theodore Morgan Consultation Bureau! ❤️🎉🍕
compliance:
uses: TMCB-SPACE/.github/.github/workflows/compliance.yml@main
45 changes: 2 additions & 43 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,5 @@ on:
workflow_call:

jobs:
test:
name: Test application
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v4

- name: "🔧 setup node"
uses: actions/setup-node@v4
with:
node-version: 20

- name: "🔧 install npm@latest"
run: npm i -g npm@latest

- name: "📦 install dependencies"
uses: bahmutov/npm-install@v1

- name: "🔍 run tests"
run: npm run test --if-present

lint:
name: Code standards
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v4

- name: "🔧 setup node"
uses: actions/setup-node@v4
with:
node-version: 20

- name: "🔧 install npm@latest"
run: npm i -g npm@latest

- name: "📦 install dependencies"
uses: bahmutov/npm-install@v1

- name: "🔍 lint code"
run: npm run lint --if-present
development:
uses: TMCB-SPACE/.github/.github/workflows/development.yml@main

0 comments on commit ed50aee

Please sign in to comment.