build: Use prettier for yaml

Stop ignoring .yml files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2024-12-18 17:11:44 +01:00
committed by Adam Saghy
parent e3fbf8b81d
commit 0f6dac9089
5 changed files with 47 additions and 51 deletions
+12 -13
View File
@@ -1,7 +1,7 @@
name: DMP 2024 Design Project Template name: DMP 2024 Design Project Template
description: List a new design project for Dedicated Mentoring Program 2024 description: List a new design project for Dedicated Mentoring Program 2024
title: "[DMP 2024]: " title: '[DMP 2024]: '
labels: ["DMP 2024" , "Product Usability"] labels: ['DMP 2024', 'Product Usability']
body: body:
- type: textarea - type: textarea
id: ticket-description id: ticket-description
@@ -10,7 +10,7 @@ body:
attributes: attributes:
label: Description label: Description
description: Provide a brief description of the problem statement here. Include any relevant context or background information (user research findings, list of user personas / target users affected, etc.,.) description: Provide a brief description of the problem statement here. Include any relevant context or background information (user research findings, list of user personas / target users affected, etc.,.)
- type: textarea - type: textarea
id: key-design-research-questions id: key-design-research-questions
validations: validations:
@@ -25,14 +25,14 @@ body:
required: true required: true
attributes: attributes:
label: Current State label: Current State
description: Describe the current state of the problem. What are the gaps / unanswered questions wrt problem statements identified? What is the user experience like currently? description: Describe the current state of the problem. What are the gaps / unanswered questions wrt problem statements identified? What is the user experience like currently?
- type: textarea - type: textarea
id: desired-state id: desired-state
validations: validations:
required: true required: true
attributes: attributes:
label: Desired State label: Desired State
description: What is the roadmap for the intended users and the respective product? Please list if there are any product / feature specific expected goals. (These could be overall and not limited to the DMP project goals) description: What is the roadmap for the intended users and the respective product? Please list if there are any product / feature specific expected goals. (These could be overall and not limited to the DMP project goals)
- type: textarea - type: textarea
@@ -41,7 +41,7 @@ body:
required: true required: true
attributes: attributes:
label: Goals & Mid-Point Milestone label: Goals & Mid-Point Milestone
description: List the goals of the project (What is the expected end outcome from the project). Add the tasks that must be completed by Mid-point check-in i.e 1.5 months into the execution period description: List the goals of the project (What is the expected end outcome from the project). Add the tasks that must be completed by Mid-point check-in i.e 1.5 months into the execution period
value: | value: |
## Goals ## Goals
- [ ] [Goal 1] - [ ] [Goal 1]
@@ -102,10 +102,10 @@ body:
- Ushahidi - Ushahidi
- Arghyam - Arghyam
- Piramal Swasthya Management Research Institute - Piramal Swasthya Management Research Institute
- Dimagi - Dimagi
- Win Over Cancer - Win Over Cancer
- Protean - Protean
- Thoughtworks - Thoughtworks
validations: validations:
required: true required: true
@@ -114,11 +114,11 @@ body:
attributes: attributes:
label: Domain label: Domain
options: options:
- ⁠Healthcare - ⁠Healthcare
- ⁠Education - ⁠Education
- Financial Inclusion - Financial Inclusion
- ⁠Livelihoods - ⁠Livelihoods
- ⁠Skilling - ⁠Skilling
- ⁠Learning & Development - ⁠Learning & Development
- ⁠Agriculture - ⁠Agriculture
- ⁠Service Delivery - ⁠Service Delivery
@@ -134,4 +134,3 @@ body:
description: Please tag relevant mentors for the ticket description: Please tag relevant mentors for the ticket
validations: validations:
required: true required: true
+5 -5
View File
@@ -4,9 +4,9 @@ name: build-run
on: on:
# Triggers the workflow on push or pull request events but only for the main branch # Triggers the workflow on push or pull request events but only for the main branch
push: push:
branches: [ master ] branches: [master]
pull_request: pull_request:
branches: [ master ] branches: [master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@@ -29,16 +29,16 @@ jobs:
# lts/gallium node v19.7.0 (npm v9.5.0) # lts/gallium node v19.7.0 (npm v9.5.0)
node-version: '19.7.0' node-version: '19.7.0'
- name: Angular CLI install - name: Angular CLI install
run : npm install -g --silent @angular/cli@14.2.12 run: npm install -g --silent @angular/cli@14.2.12
- name: Npm install - name: Npm install
run: npm install run: npm install
- name: Run eslint - name: Run eslint
run : npx ng lint run: npx ng lint
- name: Run build - name: Run build
run : npm run build:prod run: npm run build:prod
- name: Deploy to github pages - name: Deploy to github pages
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
+18 -20
View File
@@ -1,33 +1,31 @@
name: Publish Image in Docker Hub name: Publish Image in Docker Hub
on: on:
push: push:
branches: [ master ] branches: [master]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}} DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}}
WEB_APP_VERSION: ${{secrets.WEB_APP_LATEST_STABLE_VERSION}} WEB_APP_VERSION: ${{secrets.WEB_APP_LATEST_STABLE_VERSION}}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Docker Hub Login - name: Docker Hub Login
env: env:
DOCKER_USER: ${{secrets.DOCKER_USER}} DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: | run: |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
- name: Build the Docker image - name: Build the Docker image
run: docker build -t web-app:latest . run: docker build -t web-app:latest .
- name: Docker Hub Prepare
run: docker image tag web-app $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION
- name: Docker Hub Push - name: Docker Hub Prepare
run: docker image push $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION run: docker image tag web-app $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION
- name: Docker Hub Push
run: docker image push $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION
+12 -12
View File
@@ -4,23 +4,23 @@
name: Mark stale issues and pull requests name: Mark stale issues and pull requests
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: '0 0 * * *'
permissions: permissions:
contents: read contents: read
jobs: jobs:
stale: stale:
permissions: permissions:
issues: write # for actions/stale to close stale issues issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@9c1b1c6e115ca2af09755448e0dbba24e5061cc8 # tag=v5 - uses: actions/stale@9c1b1c6e115ca2af09755448e0dbba24e5061cc8 # tag=v5
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
# stale-issue-message: 'Stale issue message' # stale-issue-message: 'Stale issue message'
# stale-issue-label: 'no-issue-activity' # stale-issue-label: 'no-issue-activity'
stale-pr-message: 'This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.' stale-pr-message: 'This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.'
stale-pr-label: 'stale' stale-pr-label: 'stale'
days-before-stale: 30 days-before-stale: 30
days-before-close: 30 days-before-close: 30
-1
View File
@@ -5,4 +5,3 @@
*.js *.js
*.json *.json
*.ts *.ts
*.yml