Skip to content

Commit

Permalink
feat: create profiles (based in MySQL2 3.9.4) (#3)
Browse files Browse the repository at this point in the history
* ci: add tests

* feat: create profiles

* ci: disable release-please

* ci: temporary remove release-please
  • Loading branch information
wellwelwel committed Apr 10, 2024
1 parent 9b5d2b9 commit 2a98699
Show file tree
Hide file tree
Showing 11 changed files with 3,172 additions and 60 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ jobs:
run: npm ci

- name: Building the Lib
run: npm run build
run: npm run build -- --noEmit

- name: Running Tests
run: npm run test
56 changes: 0 additions & 56 deletions .github/workflows/release-please.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/release-please.yml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# name: 'Deploy'
# on:
# push:
# branches:
# - 'main'
# workflow_dispatch:
# permissions:
# contents: write
# pull-requests: write
# jobs:
# release-please:
# runs-on: ubuntu-latest
# timeout-minutes: 5
# name: Release Please
# steps:
# - name: Install release-please
# uses: google-github-actions/release-please-action@v3
# id: release
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# release-type: node
# package-name: aws-ssl-profiles
# changelog-path: 'CHANGELOG.md'

# - name: Actions - Checkout
# uses: actions/checkout@v4
# if: ${{ steps.release.outputs.releases_created }}

# - name: Actions - Setup NodeJS
# uses: actions/setup-node@v4
# if: ${{ steps.release.outputs.releases_created }}
# with:
# node-version: '20.x'
# registry-url: 'https://registry.npmjs.org'

# - name: Cache dependencies
# uses: actions/cache@v4
# if: ${{ steps.release.outputs.releases_created }}
# with:
# path: ~/.npm
# key: npm-linux-${{ hashFiles('package-lock.json') }}
# restore-keys: npm-linux-

# - name: Installing Dependencies
# if: ${{ steps.release.outputs.releases_created }}
# run: npm ci

# - name: Building Lib
# if: ${{ steps.release.outputs.releases_created }}
# run: npm run build

# - name: Publishing Package
# if: ${{ steps.release.outputs.releases_created }}
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npm publish
23 changes: 23 additions & 0 deletions package-lock.json

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

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "aws-ssl-profiles",
"main": "lib/index.js",
"description": "AWS RDS certificates bundles.",
"version": "0.1.0",
"license": "MIT",
"repository": "https://github.com/mysqljs/aws-ssl-profiles",
"repository": {
"type": "git",
"url": "https://github.com/mysqljs/aws-ssl-profiles"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.6.0",
Expand All @@ -13,19 +17,22 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"poku": "^1.9.3",
"prettier": "^3.2.5",
"tsx": "^4.7.2",
"typescript": "^5.4.4"
},
"files": [
"lib/"
"lib"
],
"engines": {
"node": ">= 6.0.0"
},
"scripts": {
"build": "npx tsc",
"lint": "eslint . --ext .js,.ts && prettier --check .",
"lint:fix": "eslint . --fix --config ./.eslintrc.json && prettier --write ."
"lint:fix": "eslint . --fix --config ./.eslintrc.json && prettier --write .",
"test": "poku --parallel ./test",
"test:ci": "npm run lint && npm run build -- --noEmit && npm run test"
}
}
5 changes: 5 additions & 0 deletions src/@types/profiles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export type CA = string[];

export type Profiles = {
ca: CA;
};
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Profiles } from './@types/profiles.js';
import { defaults } from './profiles/ca/defaults.js';

export const profiles: Profiles = {
ca: defaults,
};
Loading

0 comments on commit 2a98699

Please sign in to comment.