Skip to content

Commit

Permalink
chore(ci): configure npm, dependabot and gha (#1)
Browse files Browse the repository at this point in the history
* chore(docs): add install instructions

* chore(deps): install relevant packages

* chore(test): add basic app test suite

* chore: git ignore node modules

* chore: install sdk build flavor

* chore(ci): configure cicd

* chore(test): set timeout to infinity

* chore(ci): configure release please

* chore(deps): roll back nw to v0.87.0-4

* chore(deps): update lock file

* chore(deps): update lock file

* chore(test): fix file path to nw project

* chore(test): listen to deprecation warning
  • Loading branch information
ayushmanchhabra authored May 26, 2024
1 parent d229256 commit 4f0d574
Show file tree
Hide file tree
Showing 14 changed files with 4,161 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "."
schedule:
interval: "daily"
versioning-strategy: increase
groups:
npm:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: ".github/workflows"
schedule:
interval: "daily"
groups:
gha:
patterns:
- "*"
36 changes: 36 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: e2e

on:
pull_request:
branches:
- main

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
e2e:
strategy:
matrix:
os:
- macos-14
- ubuntu-22.04
- windows-2022
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Use Node version defined in manifest
uses: volta-cli/[email protected]
- name: Node.js version
run: node -v
- name: npm version
run: npm -v
- name: Install dependencies
run: npm ci
- name: Check for linting errors
run: npm run lint
- name: Run tests
run: npm run test
20 changes: 20 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: npm

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 22

- run: npm ci
- uses: JS-DevTools/[email protected]
with:
token: ${{ secrets.NPM_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/rel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: rel

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- name: Release Please
uses: googleapis/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nwjs_build_type=sdk
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.0"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# nw-cli

Command line interface for building NW.js apps

## Getting Started

1. Install [Volta](https://volta.sh/)
1. Install package: `npm i -D @nwutils/cli`
Loading

0 comments on commit 4f0d574

Please sign in to comment.