Skip to content

Commit 279f145

Browse files
committed
Update action from typescript-action template
1 parent c35baa1 commit 279f145

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+213174
-142996
lines changed

.devcontainer/devcontainer.json

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
31
{
4-
"name": "Ubuntu",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/base:noble",
7-
"features": {
8-
"ghcr.io/devcontainers-contrib/features/volta:1": {}
9-
}
10-
11-
// Features to add to the dev container. More info: https://containers.dev/features.
12-
// "features": {},
13-
14-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15-
// "forwardPorts": [],
16-
17-
// Use 'postCreateCommand' to run commands after the container is created.
18-
// "postCreateCommand": "uname -a",
19-
20-
// Configure tool-specific properties.
21-
// "customizations": {},
22-
23-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24-
// "remoteUser": "root"
2+
"name": "GitHub Actions (TypeScript)",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
4+
"postCreateCommand": "npm install",
5+
"customizations": {
6+
"codespaces": {
7+
"openFiles": ["README.md"]
8+
},
9+
"vscode": {
10+
"extensions": [
11+
"bierner.markdown-preview-github-styles",
12+
"davidanson.vscode-markdownlint",
13+
"dbaeumer.vscode-eslint",
14+
"esbenp.prettier-vscode",
15+
"github.copilot",
16+
"github.copilot-chat",
17+
"github.vscode-github-actions",
18+
"github.vscode-pull-request-github",
19+
"me-dutour-mathieu.vscode-github-actions",
20+
"redhat.vscode-yaml",
21+
"rvest.vs-code-prettier-eslint",
22+
"yzhang.markdown-all-in-one"
23+
],
24+
"settings": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode",
26+
"editor.tabSize": 2,
27+
"editor.formatOnSave": true,
28+
"markdown.extension.list.indentationSize": "adaptive",
29+
"markdown.extension.italic.indicator": "_",
30+
"markdown.extension.orderedList.marker": "one"
31+
}
32+
}
33+
},
34+
"remoteEnv": {
35+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
36+
},
37+
"features": {
38+
"ghcr.io/devcontainers/features/github-cli:1": {},
39+
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
40+
}
2541
}

.env.example

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# dotenv-linter:off IncorrectDelimiter
2+
3+
# Do not commit your actual .env file to Git! This may contain secrets or other
4+
# private information.
5+
6+
# Enable/disable step debug logging (default: `false`). For local debugging, it
7+
# may be useful to set it to `true`.
8+
ACTIONS_STEP_DEBUG=true
9+
10+
# GitHub Actions inputs should follow `INPUT_<name>` format (case-sensitive).
11+
# Hyphens should not be converted to underscores!
12+
INPUT_MILLISECONDS=2400
13+
14+
# GitHub Actions default environment variables. These are set for every run of a
15+
# workflow and can be used in your actions. Setting the value here will override
16+
# any value set by the local-action tool.
17+
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
18+
19+
# CI="true"
20+
# GITHUB_ACTION=""
21+
# GITHUB_ACTION_PATH=""
22+
# GITHUB_ACTION_REPOSITORY=""
23+
# GITHUB_ACTIONS=""
24+
# GITHUB_ACTOR=""
25+
# GITHUB_ACTOR_ID=""
26+
# GITHUB_API_URL=""
27+
# GITHUB_BASE_REF=""
28+
# GITHUB_ENV=""
29+
# GITHUB_EVENT_NAME=""
30+
# GITHUB_EVENT_PATH=""
31+
# GITHUB_GRAPHQL_URL=""
32+
# GITHUB_HEAD_REF=""
33+
# GITHUB_JOB=""
34+
# GITHUB_OUTPUT=""
35+
# GITHUB_PATH=""
36+
# GITHUB_REF=""
37+
# GITHUB_REF_NAME=""
38+
# GITHUB_REF_PROTECTED=""
39+
# GITHUB_REF_TYPE=""
40+
# GITHUB_REPOSITORY=""
41+
# GITHUB_REPOSITORY_ID=""
42+
# GITHUB_REPOSITORY_OWNER=""
43+
# GITHUB_REPOSITORY_OWNER_ID=""
44+
# GITHUB_RETENTION_DAYS=""
45+
# GITHUB_RUN_ATTEMPT=""
46+
# GITHUB_RUN_ID=""
47+
# GITHUB_RUN_NUMBER=""
48+
# GITHUB_SERVER_URL=""
49+
# GITHUB_SHA=""
50+
# GITHUB_STEP_SUMMARY=""
51+
# GITHUB_TRIGGERING_ACTOR=""
52+
# GITHUB_WORKFLOW=""
53+
# GITHUB_WORKFLOW_REF=""
54+
# GITHUB_WORKFLOW_SHA=""
55+
# GITHUB_WORKSPACE=""
56+
# RUNNER_ARCH=""
57+
# RUNNER_DEBUG=""
58+
# RUNNER_NAME=""
59+
# RUNNER_OS=""
60+
# RUNNER_TEMP=""
61+
# RUNNER_TOOL_CACHE=""

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 92 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Force LF everywhere for prettier
2-
* text eol=lf
2+
* text=auto eol=lf
33
# Ignore diffs in dist as it is generated code
44
dist/** -diff linguist-generated=true
55

.github/dependabot.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for more information:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
# https://containers.dev/guide/dependabot
6-
71
version: 2
82
updates:
9-
- package-ecosystem: "npm"
10-
directory: "/"
11-
schedule:
12-
interval: "daily"
13-
- package-ecosystem: "github-actions"
14-
directory: "/"
3+
- package-ecosystem: github-actions
4+
directory: /
155
schedule:
16-
interval: "daily"
17-
- package-ecosystem: "devcontainers"
18-
directory: "/"
6+
interval: weekly
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: npm
14+
directory: /
1915
schedule:
2016
interval: weekly
17+
ignore:
18+
- dependency-name: '@types/node'
19+
update-types:
20+
- 'version-update:semver-major'
21+
groups:
22+
npm-development:
23+
dependency-type: development
24+
update-types:
25+
- minor
26+
- patch
27+
npm-production:
28+
dependency-type: production
29+
update-types:
30+
- patch

.github/workflows/CI.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: [windows-2025, windows-2022, ubuntu-24.04, ubuntu-22.04, ubuntu-24.04-arm, ubuntu-22.04-arm]
23+
os:
24+
[
25+
windows-2025,
26+
windows-2022,
27+
ubuntu-24.04,
28+
ubuntu-22.04,
29+
ubuntu-24.04-arm,
30+
ubuntu-22.04-arm
31+
]
2432
method: [local, network]
2533
runs-on: ${{ matrix.os }}
2634

@@ -29,19 +37,12 @@ jobs:
2937
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3038
- uses: actions/checkout@v4
3139

32-
# npm cache
33-
- name: Get npm cache directory
34-
id: npm-cache-dir
35-
shell: bash
36-
run: |
37-
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
38-
- uses: actions/cache@v4
39-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
40+
- name: Setup Node.js
41+
id: setup-node
42+
uses: actions/setup-node@v4
4043
with:
41-
path: ${{ steps.npm-cache-dir.outputs.dir }}
42-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
43-
restore-keys: |
44-
${{ runner.os }}-node-
44+
node-version-file: .node-version
45+
cache: npm
4546

4647
- name: Install npm dependencies
4748
run: npm ci
@@ -67,7 +68,9 @@ jobs:
6768
method: ${{matrix.method}}
6869
log-file-suffix: '${{matrix.method}}-${{matrix.os}}'
6970

70-
- name: Run the action on this runner with nvcc and libcublas subpackages (Linux)
71+
- name:
72+
Run the action on this runner with nvcc and libcublas subpackages
73+
(Linux)
7174
if: runner.os == 'Linux' && matrix.method == 'network'
7275
uses: ./
7376
with:

0 commit comments

Comments
 (0)