Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Aug 17, 2023
1 parent f3e68fe commit 0c12079
Show file tree
Hide file tree
Showing 37 changed files with 596 additions and 483 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
project: './tsconfig.json',
},
extends: ["eslint:recommended"],
ignorePatterns: ["/dist/**/*"],
rules: {},
overrides: [
{
files: ["*.ts"],
extends: [
"plugin:@typescript-eslint/recommended",
],
},
{
files: ["*.js"],
env: { node: true },
},
],
};
55 changes: 0 additions & 55 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/
name: Check dist

on:
push:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'build-test'
name: Test
on:
pull_request:

Expand All @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: |
npm install
npm ci
- run: |
npm run all
test: # make sure the action works on a clean machine without building
Expand All @@ -19,5 +19,5 @@ jobs:
with:
subscriptionId: d08e1a72-8180-4ed3-8125-9dff7376b0bd
resourceGroup: ant-test
templateFile: __tests__/scenarios/static-error/main.bicep
parametersFile: __tests__/scenarios/static-error/main.bicepparam
templateFile: test/scenarios/static-error/main.bicep
parametersFile: test/scenarios/static-error/main.bicepparam
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,4 @@ typings/
Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "none"
}
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

36 changes: 0 additions & 36 deletions __tests__/scenarios.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ inputs:
description: 'Parameters File'
runs:
using: 'node16'
main: 'lib/main.js'
main: 'dist/index.js'
Loading

0 comments on commit 0c12079

Please sign in to comment.