From ac942dba28d5ecdfdf6e56b47d0a2b3196818d56 Mon Sep 17 00:00:00 2001 From: JKTUNING Date: Wed, 30 Aug 2023 23:13:34 -0400 Subject: [PATCH] Setup Action --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ .vscode/settings.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..116b696 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: NodeJS Lint + +on: + push: + branches: ["*"] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm run lint:check + - run: npm run format:check diff --git a/.vscode/settings.json b/.vscode/settings.json index 773a82f..2eb38c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "editor.tabSize": 2, "editor.detectIndentation": false, - "editor.formatOnSave": false, + "editor.formatOnSave": true, + "ansible.python.interpreterPath": "/bin/python3", } \ No newline at end of file