Skip to content

Commit

Permalink
Testing some stuff with the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
souyahia-monk committed Sep 5, 2024
1 parent ce55b57 commit 8dbcd1a
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 112 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/build-demo-app.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Build Demo App
run-name: Build Demo App On Pull Request

on:
pull_request:
branches: [main]

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: 💾 Checking out the repository
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📱 Building the demo app
run: cd apps/demo-app && yarn build:staging
#name: Build Demo App
#run-name: Build Demo App On Pull Request
#
#on:
# pull_request:
# branches: [main]
#
#jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# steps:
# - name: 💾 Checking out the repository
# uses: actions/checkout@v4
# - name: ⚙️ Setting up the MonkJs project
# uses: ./.github/actions/monkjs-set-up
# with:
# build-env: production
# - name: 📱 Building the demo app
# run: cd apps/demo-app && yarn build:staging
50 changes: 25 additions & 25 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Build Documentation
run-name: Build Documentation On Pull Request

on:
pull_request:
branches: [main]

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: 💾 Checking out the repository
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
#name: Build Documentation
#run-name: Build Documentation On Pull Request
#
#on:
# pull_request:
# branches: [main]
#
#jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# steps:
# - name: 💾 Checking out the repository
# uses: actions/checkout@v4
# - name: ⚙️ Setting up the MonkJs project
# uses: ./.github/actions/monkjs-set-up
# with:
# build-env: production
# - name: 📚 Building the documentation
# run: yarn build:documentation
50 changes: 25 additions & 25 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Code Quality
run-name: Analyze Code Quality On Pull Request

on:
pull_request:
branches: [main]

jobs:
checks:
name: Run Checks
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: 💾 Checking out the repository
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
- name: 📝 Checking code formatting
run: yarn lint
- name: 🧪 Running the tests
run: yarn test:coverage
#name: Code Quality
#run-name: Analyze Code Quality On Pull Request
#
#on:
# pull_request:
# branches: [main]
#
#jobs:
# checks:
# name: Run Checks
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# steps:
# - name: 💾 Checking out the repository
# uses: actions/checkout@v4
# - name: ⚙️ Setting up the MonkJs project
# uses: ./.github/actions/monkjs-set-up
# - name: 📝 Checking code formatting
# run: yarn lint
# - name: 🧪 Running the tests
# run: yarn test:coverage
70 changes: 35 additions & 35 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Deploy Documentation
run-name: Deploy Documentation To GitHub Pages After Merge

on:
push:
branches: [main]

jobs:
build-deploy:
name: Build & Deploy
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
id-token: write
pages: write

steps:
- name: 💾 Checking out the repository
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
with:
build-env: production
- name: 📚 Building the documentation
run: yarn build:documentation
- name: 📃 Setting Up GitHub Pages
uses: actions/[email protected]
- name: 📦 Uploading the artifact
uses: actions/[email protected]
with:
path: documentation/build
- name: 🌐 Deploying the documentation
uses: actions/[email protected]
#name: Deploy Documentation
#run-name: Deploy Documentation To GitHub Pages After Merge
#
#on:
# push:
# branches: [main]
#
#jobs:
# build-deploy:
# name: Build & Deploy
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
# id-token: write
# pages: write
#
# steps:
# - name: 💾 Checking out the repository
# uses: actions/checkout@v4
# - name: ⚙️ Setting up the MonkJs project
# uses: ./.github/actions/monkjs-set-up
# with:
# build-env: production
# - name: 📚 Building the documentation
# run: yarn build:documentation
# - name: 📃 Setting Up GitHub Pages
# uses: actions/[email protected]
# - name: 📦 Uploading the artifact
# uses: actions/[email protected]
# with:
# path: documentation/build
# - name: 🌐 Deploying the documentation
# uses: actions/[email protected]
3 changes: 1 addition & 2 deletions .github/workflows/test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ run-name: Test Env
on:
pull_request:
branches: [main]
push:
branches: [ main ]

jobs:
build:
name: Test
environment: development
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down

0 comments on commit 8dbcd1a

Please sign in to comment.