Skip to content

Commit

Permalink
Merge pull request #92 from AckeeCZ/feat/application-default-credential
Browse files Browse the repository at this point in the history
✨ Add support for application default credentials
  • Loading branch information
cermakjiri authored Nov 15, 2024
2 parents 6563e6c + 348ba82 commit f7afb06
Show file tree
Hide file tree
Showing 83 changed files with 19,712 additions and 19,982 deletions.
19 changes: 15 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": ["oclif", "oclif-typescript", "prettier"],
"extends": [
"oclif",
"oclif-typescript",
"prettier"
],
"rules": {
"unicorn/prefer-node-protocol": "off",
"node/no-extraneous-import": "off",
Expand All @@ -16,7 +20,14 @@
],
"no-warning-comments": [
"warn",
{ "terms": ["fixme", "xxx"], "location": "start" }
]
{
"terms": [
"fixme",
"xxx"
],
"location": "start"
}
],
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
}
94 changes: 50 additions & 44 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,58 @@
name: Deploy documentation web

on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v2
# We can't use https://github.com/withastro/action as it install dependencies
# at root directory, not the defined sub path
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install
shell: "bash"
run: yarn install

- name: Build
shell: "bash"
working-directory: ./docs/web
run: yarn build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./docs/web/dist/"

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
# We can't use https://github.com/withastro/action as it install dependencies
# at root directory, not the defined sub path
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- name: Enable Corepack
run: corepack enable

- name: Install Corepack
run: corepack install

- name: Install
shell: 'bash'
run: yarn install --immutable

- name: Build
shell: 'bash'
working-directory: ./docs/web
run: yarn build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs/web/dist/'

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
42 changes: 24 additions & 18 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
name: Deploy extension

on:
push:
tags:
- "ext-*"
push:
tags:
- 'ext-*'

jobs:
publish-marketplace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
publish-marketplace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install
run: yarn install --frozen-lockfile
working-directory: ./vscode-extension
- name: Enable Corepack
run: corepack enable

- name: Deploy to marketplace
run: yarn deploy
working-directory: ./vscode-extension
env:
VSCE_PAT: ${{ secrets.VSCODE_SECRET }}
- name: Install Corepack
run: corepack install

- name: Install
run: yarn install --immutable
working-directory: ./vscode-extension

- name: Deploy to marketplace
run: yarn deploy
working-directory: ./vscode-extension
env:
VSCE_PAT: ${{ secrets.VSCODE_SECRET }}
62 changes: 34 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,39 @@
name: Release

on:
push:
tags:
- "v*"
push:
tags:
- 'v*'

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: yarn bootstrap

- name: Build
run: yarn build

- name: Publish packages
run: yarn publish:ci
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

# - name: Create Github Release
# uses: docker://antonyurchenko/git-release:latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ALLOW_TAG_PREFIX: "true"
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Enable Corepack
run: corepack enable

- name: Install Corepack
run: corepack install

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build

- name: Publish packages
run: yarn publish:ci
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

# - name: Create Github Release
# uses: docker://antonyurchenko/git-release:latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ALLOW_TAG_PREFIX: "true"
85 changes: 28 additions & 57 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,71 +1,42 @@
name: Tests

on:
pull_request:
push:
branches:
- master
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout project
uses: actions/checkout@v2
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn bootstrap
- name: Install Corepack
run: corepack install

- name: Build
run: yarn build
- name: Install dependencies
run: yarn install --immutable

test:
runs-on: ubuntu-latest
needs: build
- name: Build
run: yarn build

strategy:
matrix:
node-version: [16.x]
- name: Lint
run: yarn lint

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn bootstrap

- name: Build
run: yarn build

- name: Lint
run: yarn lint

- name: Unit tests
run: yarn test
- name: Unit tests
run: yarn test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ tmp/
packages/*/dist
packages/*/lib

.yarn
tsconfig.tsbuildinfo
.turbo
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packages/*/src/**/*.(ts|tsx)": "yarn lint",
"packages/*/(src|test)/**/*.(ts|tsx)": "yarn prettier"
"packages/*/(src|test)/**/*.(ts|tsx)": "yarn format"
}
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

19 changes: 19 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
compressionLevel: 0

defaultSemverRangePrefix: ""

enableHardenedMode: true

enableInlineHunks: true

enableTelemetry: false

networkConcurrency: 100

nmHoistingLimits: none

nmSelfReferences: false

nodeLinker: node-modules

preferInteractive: true
Loading

0 comments on commit f7afb06

Please sign in to comment.