Skip to content

Commit

Permalink
Apply linter on pull request and merge, and update dependency version…
Browse files Browse the repository at this point in the history
…s with SHA
  • Loading branch information
spinillos committed Dec 16, 2024
1 parent 9f7a49d commit a7d5bb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI
on:
pull_request: ~
push:
branches:
- main

jobs:
linters:
Expand All @@ -9,7 +12,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install devbox
uses: jetify-com/devbox-install-action@v0.11.0
uses: jetify-com/devbox-install-action@270f8b2a010f03386d4dcd192eb89535df7b674b #v0.13.7
with:
enable-cache: 'true'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dashboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Get changed dashboards
id: changed-files
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 #v41.0.5
with:
files: dashboards/**.json

Expand All @@ -36,4 +36,4 @@ jobs:
GRAFANA_INSTANCE_URL: ${{ secrets.GRAFANA_INSTANCE_URL }}
GRAFANA_API_TOKEN: ${{ secrets.GRAFANA_API_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}


23 changes: 2 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,6 @@ permissions:

name: Publish Extension
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install devbox
uses: jetify-com/[email protected]
with:
enable-cache: 'true'

- name: Install vendors
run: devbox run yarn install --frozen-lockfile

- name: Compile codebase
run: devbox run yarn run compile

- name: Run linters
run: devbox run yarn run lint

publish:
needs: lint

Expand All @@ -37,7 +18,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install devbox
uses: jetify-com/devbox-install-action@v0.11.0
uses: jetify-com/devbox-install-action@270f8b2a010f03386d4dcd192eb89535df7b674b #v0.13.7
with:
enable-cache: 'true'

Expand All @@ -62,7 +43,7 @@ jobs:
run: devbox run vsce publish --pat ${{ env.VS_MARKETPLACE_TOKEN }} --packagePath grafana-vscode.vsix

- name: Create GitHub release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 #v1.14.0
with:
allowUpdates: true
artifacts: "grafana-vscode.vsix"
Expand Down

0 comments on commit a7d5bb1

Please sign in to comment.