Skip to content

Commit

Permalink
Test github action - (DO NOT COMMIT)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-carter-at-sf committed Dec 14, 2023
1 parent ee4d6fc commit 9043f36
Show file tree
Hide file tree
Showing 10 changed files with 240,726 additions and 30 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lib/**
node_modules/**
!node_modules/@salesforce/dev-config/tsconfig.json
13 changes: 7 additions & 6 deletions .eslintrc.json → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:sf-plugin/migration"
],
"parserOptions": {
parserOptions: {
"sourceType": "module",
"ecmaVersion": 2018,
"project": "./tsconfig.json"
"project": "./tsconfig.json",
"tsconfigRootDir": __dirname
},
"plugins": [
plugins: [
"@typescript-eslint"
]
}
25 changes: 25 additions & 0 deletions .github/workflows/gha-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: gha-test
on:
workflow_call:

pull_request:
types: [edited, opened, reopened, synchronize]

jobs:
do_the_thing:
runs-on: ubuntu-latest
name: Test the new actions
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*' # Always use Node LTS for building dependencies.
- run: yarn
- uses: rmohan20/code-analyzer-action@main
with:
render-results: false
runtype: simple
engine: eslint-typescript
target: "./src/**/*.ts"
4 changes: 2 additions & 2 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
uses: ./github-actions/verify-pr-title
id: verify_pr_title
# Separately, we also need to run all of our tests.
run_tests:
uses: ./.github/workflows/run-tests.yml
# run_tests:
# uses: ./.github/workflows/run-tests.yml
Loading

0 comments on commit 9043f36

Please sign in to comment.