Skip to content

Commit

Permalink
Clean up the boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Aug 28, 2023
1 parent 464518d commit 80f1d2c
Show file tree
Hide file tree
Showing 29 changed files with 4,509 additions and 7,754 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dist/
node_modules/
coverage/
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { getConfiguration } = require("@eng-automation/js-style/src/eslint/configuration");

const conf = getConfiguration({ typescript: { rootDir: __dirname } });

module.exports = conf;
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

17 changes: 0 additions & 17 deletions .github/dependabot.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/linters/.eslintrc.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/linters/.markdown-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/linters/.yaml-lint.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,21 @@ jobs:

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache: yarn

- name: Install Dependencies
id: install
run: npm ci
run: yarn --frozen-lockfile

- name: Build dist/ Directory
id: build
run: npm run bundle
run: yarn run package

- name: Compare Expected and Actual Directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
Expand Down
36 changes: 4 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,19 @@ jobs:

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache: yarn

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Check Format
id: npm-format-check
run: npm run format:check
run: yarn --frozen-lockfile

- name: Lint
id: npm-lint
run: npm run lint
run: yarn run lint

- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3

- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 1000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
run: yarn run test
48 changes: 0 additions & 48 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/linter.yml

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dist/
node_modules/
coverage/
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@eng-automation/js-style/src/prettier/configuration")
16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

5 changes: 1 addition & 4 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# Repository CODEOWNERS

* @actions/actions-runtime
* @ncalteen
* @paritytech/opstooling
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

The MIT License (MIT)

Copyright (c) 2018 GitHub, Inc. and contributors
Expand Down
Loading

0 comments on commit 80f1d2c

Please sign in to comment.