Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Dependencies
permissions:
contents: read

on:
on:
pull_request:

jobs:
dependency-review:
name: Dependency Review
uses: DopplerHQ/.github/.github/workflows/dependencies.yaml@main
uses: DopplerHQ/.github/.github/workflows/dependencies.yaml@main
38 changes: 35 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test
on:
on:
pull_request:
push:
branches:
Expand Down Expand Up @@ -49,11 +49,43 @@ jobs:
- name: Type check
run: pnpm run type:check

lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm run lint:check

format:
runs-on: ubuntu-latest
name: Format
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm run format:check

test_action:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
os:
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
Expand All @@ -79,4 +111,4 @@ jobs:
uses: ./
id: install
- name: Test CLI
run: doppler --version
run: doppler --version
13 changes: 6 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: 'Install Doppler CLI'
description: 'Install the Doppler CLI into your PATH'
name: "Install Doppler CLI"
description: "Install the Doppler CLI into your PATH"
branding:
icon: 'download'
color: 'blue'
icon: "download"
color: "blue"
runs:
using: 'node24'
main: 'bin/index.js'

using: "node24"
main: "bin/index.js"
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { createRequire } from "node:module";
import * as child from "child_process";
import { execSync } from "child_process";
import * as os$1 from "os";
import os, { EOL } from "os";
import * as crypto from "crypto";
Expand All @@ -10,8 +12,6 @@ import * as https from "https";
import * as events from "events";
import { ok } from "assert";
import * as util from "util";
import * as child from "child_process";
import { execSync } from "child_process";
import { setTimeout as setTimeout$1 } from "timers";
import * as stream from "stream";
//#region \0rolldown/runtime.js
Expand Down
9 changes: 9 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "oxfmt";

export default defineConfig({
ignorePatterns: ["bin/**"],
jsdoc: true,
objectWrap: "collapse",
printWidth: 130,
sortImports: { newlinesBetween: false, internalPattern: ["#"] },
});
9 changes: 9 additions & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "oxlint";

export default defineConfig({
categories: { correctness: "error", suspicious: "error", perf: "error" },
env: { builtin: true },
ignorePatterns: ["bin/**"],
plugins: ["typescript", "unicorn", "oxc"],
rules: {},
});
38 changes: 22 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
{
"name": "cli-action",
"version": "4.0.1",
"description": "GitHub Action to install the Doppler CLI",
"main": "bin/index.js",
"type": "module",
"private": true,
"packageManager": "pnpm@11.21.0",
"scripts": {
"build": "rolldown --config rolldown.config.ts",
"type:check": "tsc --noEmit"
"description": "GitHub Action to install the Doppler CLI",
"keywords": [],
"homepage": "https://github.com/DopplerHQ/cli-action#readme",
"bugs": {
"url": "https://github.com/DopplerHQ/cli-action/issues"
},
"license": "Apache-2.0",
"author": "Doppler",
"repository": {
"type": "git",
"url": "git+https://github.com/DopplerHQ/cli-action.git"
},
"keywords": [],
"author": "Doppler",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/DopplerHQ/cli-action/issues"
"type": "module",
"main": "bin/index.js",
"scripts": {
"build": "rolldown --config rolldown.config.ts",
"format:check": "oxfmt --check",
"format:fix": "oxfmt",
"lint:check": "oxlint --max-warnings 0",
"lint:fix": "oxlint --fix",
"type:check": "tsc --noEmit"
},
"homepage": "https://github.com/DopplerHQ/cli-action#readme",
"dependencies": {
"@actions/core": "^3.0.1",
"@actions/io": "^3.0.2",
"@actions/tool-cache": "^4.0.0"
},
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^7.0.0",
"rolldown": "^1.2.4"
}
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"rolldown": "^1.2.4",
"typescript": "^7.0.0"
},
"packageManager": "pnpm@11.21.0"
}
Loading
Loading