Skip to content

Commit

Permalink
composite action (#2)
Browse files Browse the repository at this point in the history
* composite action
  • Loading branch information
karpikpl authored Apr 5, 2024
1 parent 00c3d4a commit 90cdee6
Show file tree
Hide file tree
Showing 24 changed files with 71 additions and 12,284 deletions.
41 changes: 0 additions & 41 deletions .devcontainer/devcontainer.json

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/check-dist.yml

This file was deleted.

36 changes: 2 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,9 @@ on:

permissions:
contents: read
checks: write

jobs:
test-javascript:
name: JavaScript Tests
runs-on: ubuntu-latest

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

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

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

- name: Check Format
id: npm-format-check
run: npm run format:check

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

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

test-action:
name: GitHub Actions Test
Expand All @@ -56,9 +26,7 @@ jobs:
- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 1000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
run: echo "${{ steps.test-action.outputs.result }}"
13 changes: 0 additions & 13 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

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

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v6
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVASCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JSCPD: false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ __tests__/runner/*
.idea
.vscode
*.code-workspace

# Python
.venv
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

18 changes: 0 additions & 18 deletions __tests__/index.test.js

This file was deleted.

96 changes: 0 additions & 96 deletions __tests__/main.test.js

This file was deleted.

24 changes: 0 additions & 24 deletions __tests__/wait.test.js

This file was deleted.

Loading

0 comments on commit 90cdee6

Please sign in to comment.