-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- feat(session.delete): added - test(session): add lifecycle tests - config(session): ttl set to 1 hour - lib/mysql: DRY - init-mysql: added 'drop' CLI arg - ci: custom publish, b/c build test has SQL setup steps - test(user): remove duplicate setup code - test(user): add invalid user & pass tests - doc(README): added install section - better align object function names with http verbs
- Loading branch information
Showing
21 changed files
with
366 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,53 @@ env: | |
CI: true | ||
|
||
jobs: | ||
publish: | ||
uses: NicTool/.github/.github/workflows/publish.yml@main | ||
secrets: inherit | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo /etc/init.d/mysql start | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: sh sql/init-mysql.sh | ||
- run: npm install | ||
- run: npm test | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
name: Node ${{ env.node-version }} | ||
with: | ||
node-version: ${{ env.node-version }} | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# fetch-depth 0 needed by GitHub Release | ||
|
||
- name: publish to NPM | ||
run: npm publish --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
- name: GitHub Release | ||
uses: justincy/[email protected] | ||
id: release | ||
|
||
publish-gpr: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.node-version }} | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: '@nictool' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.