Skip to content

Commit

Permalink
release: v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinkhode committed Dec 22, 2024
1 parent b3f85b0 commit 6d5cec5
Show file tree
Hide file tree
Showing 29 changed files with 49,298 additions and 2,576 deletions.
41 changes: 0 additions & 41 deletions .devcontainer/devcontainer.json

This file was deleted.

9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ ACTIONS_STEP_DEBUG=true

# GitHub Actions inputs should follow `INPUT_<name>` format (case-sensitive).
# Hyphens should not be converted to underscores!
INPUT_MILLISECONDS=2400
INPUT_POSTMARK-TOKEN=
INPUT_TO=
INPUT_FROM=
INPUT_SUBJECT=
INPUT_BODY=
INPUT_IS-HTML=
INPUT_TEMPLATE-PATH=
INPUT_TEMPLATE-DATA=

# GitHub Actions default environment variables. These are set for every run of a
# workflow and can be used in your actions. Setting the value here will override
Expand Down
18 changes: 0 additions & 18 deletions .github/linters/.markdown-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/linters/.yaml-lint.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,24 @@ jobs:
id: checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
cache: pnpm

- name: Install Dependencies
id: install
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build dist/ Directory
id: build
run: npm run bundle
run: pnpm run bundle

# This will fail the workflow if the `dist/` directory is different than
# expected.
Expand Down
50 changes: 38 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,32 @@ jobs:
id: checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
cache: pnpm

- name: Install Dependencies
id: npm-ci
run: npm ci
id: pnpm-ci
run: pnpm install --frozen-lockfile

- name: Check Format
id: npm-format-check
run: npm run format:check
id: pnpm-format-check
run: pnpm run format:check

- name: Lint
id: npm-lint
run: npm run lint
id: pnpm-lint
run: pnpm run lint

- name: Test
id: npm-ci-test
run: npm run ci-test
id: pnpm-ci-test
run: pnpm run ci-test

test-action:
name: GitHub Actions Test
Expand All @@ -53,11 +57,33 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
- name: Test Local Action Without Template
id: test-action-without-template
uses: ./
with:
postmark-token: ${{ secrets.POSTMARK_TOKEN }}
to: ${{ secrets.TO_EMAIL }}
from: ${{ secrets.FROM_EMAIL }}
subject: 'Test Email Without Template'
body: 'This is a test email without template'
is-html: false

- name: Test Local Action With Template
id: test-action-with-template
uses: ./
with:
milliseconds: 2000
postmark-token: ${{ secrets.POSTMARK_TOKEN }}
to: ${{ secrets.TO_EMAIL }}
from: ${{ secrets.FROM_EMAIL }}
subject: 'Test Email With Template'
is-html: true
template-path: './templates/test.html'
template-data: |
{
"name": "${{ secrets.NAME }}",
"age": 25,
"gender": "male"
}
- name: Print Output
id: output
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/linter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.6.2
22.12.0
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Repository CODEOWNERS

* @actions/actions-oss-maintainers
* @ashwinkhode
Loading

0 comments on commit 6d5cec5

Please sign in to comment.