Skip to content

Commit

Permalink
feat: Initial implementation
Browse files Browse the repository at this point in the history
Signed-off-by: dankeboy36 <[email protected]>
  • Loading branch information
dankeboy36 committed Dec 1, 2023
1 parent 0a304ba commit 6855348
Show file tree
Hide file tree
Showing 37 changed files with 4,542 additions and 5,002 deletions.
43 changes: 4 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [ubuntu-latest]
node: [18.x]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -26,50 +26,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.config.node }}
- name: Use Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Restore CLI Binaries
uses: actions/cache/restore@v3
with:
path: test-resources/cli-releases
key: ${{ runner.os }}-cli-context-${{ hashFiles('src/test/cliContext.json') }}
- name: Restore `directories.data` folder (CLI)
uses: actions/cache/restore@v3
with:
path: test-resources/envs/cli
key: ${{ runner.os }}-cli-env-${{ hashFiles('src/test/envs.cli.json') }}
- name: Restore `directories.data` folder (Git)
uses: actions/cache/restore@v3
with:
path: test-resources/envs/git
key: ${{ runner.os }}-git-env-${{ hashFiles('src/test/envs.git.json') }}
- name: Install Dependencies
run: npm ci
- name: Check Format
run: npm run format && git diff --exit-code
- name: Lint
run: npm run lint
- name: Test
uses: coactions/setup-xvfb@v1
with:
run: npm run test-all
run: npm test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Store CLI Binaries
uses: actions/cache/save@v3
with:
path: test-resources/cli-releases
key: ${{ runner.os }}-cli-context-${{ hashFiles('src/test/cliContext.json') }}
- name: Store `directories.data` folder (CLI)
uses: actions/cache/save@v3
with:
path: test-resources/envs/cli
key: ${{ runner.os }}-cli-env-${{ hashFiles('src/test/envs.cli.json') }}
- name: Store `directories.data` folder (Git)
uses: actions/cache/save@v3
with:
path: test-resources/envs/git
key: ${{ runner.os }}-git-env-${{ hashFiles('src/test/envs.git.json') }}

release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand All @@ -93,6 +59,5 @@ jobs:
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
outputs:
release_version: ${{ steps.release.outputs.release_version }}
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
out
.DS_Store
dist
node_modules
.vscode-test
*.vsix
# binary releases of the Arduino CLI for testing and the `directories.data` folder for the tests
test-resources
.nyc_output
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extensions": ["ts"],
"spec": ["src/__tests__/*.spec.ts"],
"require": "ts-node/register"
}
5 changes: 1 addition & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
out
dist
.vscode-test
test-resources
CHANGELOG.md
.nyc_output
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"amodio.tsl-problem-matcher",
"streetsidesoftware.code-spell-checker"
]
}
50 changes: 0 additions & 50 deletions .vscode/launch.json

This file was deleted.

4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"files.exclude": {
"out": false,
"dist": false
},
"search.exclude": {
"out": true,
"dist": true
"dist": false
},
"typescript.tsc.autoDetect": "off",
"typescript.tsdk": "./node_modules/typescript/lib",
Expand Down
35 changes: 0 additions & 35 deletions .vscode/tasks.json

This file was deleted.

17 changes: 0 additions & 17 deletions .vscodeignore

This file was deleted.

35 changes: 0 additions & 35 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 6855348

Please sign in to comment.