Skip to content

Commit

Permalink
Merge pull request #34 from devhatt/workflows-ajusts
Browse files Browse the repository at this point in the history
add base wokflows
  • Loading branch information
PiluVitu authored Aug 27, 2024
2 parents aaab5ff + 77e9437 commit 30ba564
Show file tree
Hide file tree
Showing 8 changed files with 3,095 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- directory: "/"
package-ecosystem: "npm"
schedule:
interval: "weekly"
time: "06:00"
open-pull-requests-limit: 5
versioning-strategy: increase
groups:
all-minor-updates:
update-types: ["minor", "patch"]
58 changes: 58 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Closes

<details open>
<summary>
<b>Feature</b>
</summary>

N/A

</details>

<details open>
<summary>
<b>Bugfix</b>
</summary>

- **Description**
N/A

- **Cause**
N/A

- **Solution**
N/A

</details>

<details>
<summary>
<b>Changelog</b>
</summary>
N/A
</details>

<details open>
<summary>
<b>Visual evidences :framed_picture:</b>
</summary>

</details>

<details open>
<summary>
<b>Checklist</b>
</summary>

- [ ] Issue linked
- [ ] Build working correctly
- [ ] Tests created

</details>

<details>
<summary>
<b>Additional info</b>
</summary>
N/A
</details>
11 changes: 11 additions & 0 deletions .github/workflows/base-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Base Actions

on:
issue_comment:
types: [created]
pull_request:

jobs:
assignes:
uses: devhatt/workflows/.github/workflows/auto-assign.yml@main
secrets: inherit
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Next CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v3

- name: Setup deps
uses: devhatt/workflows/.github/actions/pnpm-setup@main
with:
hasEnvSetup: "false"

- name: Build
run: pnpm build

- name: LigthouseCI
run: echo "Ja ja tem mais"
53 changes: 53 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## PNPM related ###############
## https://pnpm.io/npmrc #
###############################

# Not always possible to be strict, but if it works for you, keep it to true.
# https://pnpm.io/next/npmrc#strict-peer-dependencies
strict-peer-dependencies=true

# https://pnpm.io/npmrc#auto-install-peers
auto-install-peers=true

# Helps locating duplicates, default in v8
# https://pnpm.io/next/npmrc#use-lockfile-v6
use-lockfile-v6=true

# Will fix duplicates due to peer-dependencies (>=7.29.0), default in v8
# https://github.com/pnpm/pnpm/releases/tag/v7.29.0
dedupe-peer-dependents=true

# Helps with peer-deps (>=7.23.0), default in v8
# https://pnpm.io/npmrc#resolve-peers-from-workspace-root
resolve-peers-from-workspace-root=true

# default to 'lowest' in v8.5.0
# set to highest for reasons specified here: https://github.com/pnpm/pnpm/issues/6463
# https://pnpm.io/npmrc#resolution-mode
resolution-mode=highest

# Default in 8.1.0 to fix issues with root/workspaces hoisting
# https://pnpm.io/npmrc#dedupe-direct-deps
dedupe-direct-deps=false

# Pinlock to exact version (default is '^')
# https://pnpm.io/npmrc#save-prefix
# see also how save-workspace-protocol affect this https://pnpm.io/npmrc#save-workspace-protocol
save-prefix=''

# Most of the time, you want to use the rolling protocol for monorepos
# https://pnpm.io/npmrc#save-workspace-protocol
save-workspace-protocol=rolling

# Specifies which exact Node.js version should be used for the project's runtime.
# pnpm will automatically install the specified version of Node.js and use it
# for running pnpm run commands or the pnpm node command.
# https://pnpm.io/npmrc#save-workspace-protocol
use-node-version=20.10.0

# Prevent contributors of your project from adding new incompatible dependencies
# This way, even if someone is using Node.js v16, they will not be able to install
# a new dependency that doesn't support Node.js v20.10.0.
# https://pnpm.io/npmrc#use-node-version
node-version=20.10.0
engine-strict=true
2 changes: 1 addition & 1 deletion components/octopost/Footer/assets/inputWhatsIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

function InputIconWhats({ size }: number) {
function InputIconWhats({ size }: { size: number }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "devhat-lp",
"version": "0.1.0",
"engines": {
"node": "^20",
"pnpm": "^8"
},
"private": true,
"type": "module",
"scripts": {
Expand Down
Loading

0 comments on commit 30ba564

Please sign in to comment.