Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Jardim committed Oct 12, 2023
1 parent ea86e74 commit 6a99ed4
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 84 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: npm

- name: Install Dependencies
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/check_merge_conflict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Verify unwanted versioned conflicts

on: [pull_request]

jobs:
merge_conflict_job:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
- uses: actions/checkout@v4.1.0
- name: Merge Conflict finder
uses: olivernybroe/action-conflict-finder@v4.0
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.0

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: npm

- name: Install Dependencies
Expand All @@ -47,7 +47,7 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.0

- name: Test Local Action
id: test-action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.0

- name: Initialize CodeQL
id: initialize
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/dependencies_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check for dependencies without specific version

on:
pull_request:
push:
branches:
- main
- develop
- feature/**

jobs:
dependency_check_job:
runs-on: ubuntu-latest
name: Check for dependencies without specific version
steps:
- uses: actions/checkout@v4.1.0
- uses: matheusjardimb/dependencies-checker@latest
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.0

- name: Setup Node.js
id: setup-node
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.5.0
4 changes: 0 additions & 4 deletions CODEOWNERS

This file was deleted.

28 changes: 3 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
# Create a JavaScript Action Using TypeScript
# i18next Resource Validator Action

[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)
![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)

Use this template to bootstrap the creation of a TypeScript action. :rocket:

This template includes compilation support, tests, a validation workflow,
publishing, and versioning guidance.

If you are new, there's also a simpler introduction in the
[Hello world JavaScript action repository](https://github.com/actions/hello-world-javascript-action).

## Create Your Own Action

To create your own action, you can use this repository as a template! Just
follow the below instructions:

1. Click the **Use this template** button at the top of the repository
1. Select **Create a new repository**
1. Select an owner and name for your new repository
1. Click **Create repository**
1. Clone your new repository

## Initial Setup

After you've cloned the repository to your local machine or codespace, you'll
need to perform some initial setup steps before you can develop your action.

> [!NOTE]
>
> You'll need to have a reasonably modern version of
Expand Down Expand Up @@ -154,7 +132,7 @@ action in the same repository.
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.0

- name: Test Local Action
id: test-action
Expand Down Expand Up @@ -185,7 +163,7 @@ hash.
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.0
- name: Test Local Action
id: test-action
Expand Down
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 32 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "typescript-action",
"description": "GitHub Actions TypeScript template",
"version": "0.0.0",
"author": "",
"private": true,
"homepage": "https://github.com/actions/typescript-action",
"name": "i18next-resources-validator",
"description": "GitHub Action for validating i18next resources",
"version": "0.0.1",
"author": {
"name": "Matheus Jardim Bernardes",
"url": "https://matheusjardimb.com/"
},
"private": false,
"homepage": "https://github.com/matheusjardimb/i18next-resources-validator-action",
"repository": {
"type": "git",
"url": "git+https://github.com/actions/typescript-action.git"
"url": "git+https://github.com/matheusjardimb/i18next-resources-validator-action.git"
},
"bugs": {
"url": "https://github.com/actions/typescript-action/issues"
"url": "https://github.com/matheusjardimb/i18next-resources-validator-action/issues"
},
"keywords": [
"actions",
"node",
"setup"
"i18next"
],
"exports": {
".": "./dist/index.js"
Expand Down Expand Up @@ -65,25 +68,26 @@
]
},
"dependencies": {
"@actions/core": "^1.10.1"
"@actions/core": "1.10.1"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.51.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-jsonc": "^2.10.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"make-coverage-badge": "^1.2.0",
"prettier": "^3.0.3",
"prettier-eslint": "^15.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
}
"@types/jest": "29.5.5",
"eslint-plugin-jest": "27.4.2",
"jest": "29.7.0",
"ts-jest": "29.1.1",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"eslint": "8.51.0",
"eslint-plugin-github": "4.10.1",
"eslint-plugin-jsonc": "2.10.0",
"eslint-plugin-prettier": "5.0.1",
"prettier-eslint": "15.0.1",
"prettier": "3.0.3",
"@types/node": "20.8.4",
"@vercel/ncc": "0.38.0",
"js-yaml": "4.1.0",
"make-coverage-badge": "1.2.0",
"typescript": "5.2.2"
},
"bin": "./dist/index.js"
}

0 comments on commit 6a99ed4

Please sign in to comment.