Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Mar 31, 2023
1 parent a2db4c8 commit 4434984
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Checks
on:
pull_request:
push:
branches:
- main

jobs:
configs_check:
name: Validate configs
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useRollingCache: true

- name: Run ESLint
run: yarn eslint .

- name: Validate marketplace config schema
run: './tools/marketplace-config-validator/script.sh'

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"private": false,
"license": "MIT",
"engines": {
"node": "18",
"npm": "8"
},
"devDependencies": {
"eslint": "^8.37.0",
"eslint-plugin-jsonc": "^2.7.0",
Expand Down

0 comments on commit 4434984

Please sign in to comment.