Skip to content

Commit

Permalink
Add simple CI (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
aivus authored Aug 15, 2024
1 parent 7d48f02 commit 0420dec
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 15,788 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
assignees:
- "s0ph1e"
- "aivus"
open-pull-requests-limit: 10
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
assignees:
- "aivus"
schedule:
interval: "weekly"
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Test

on:
workflow_dispatch: ~
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build_and_test:
name: Build and Test
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
node-version:
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
experimental: [false]
include:
- node-version: 20
os: macos-latest
experimental: true
- node-version: current
os: ubuntu-latest
experimental: true
- node-version: current
os: windows-latest
experimental: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Check the application
uses: BerniWittmann/background-server-action@v1
with:
command: curl -sSf http://127.0.0.1:3000 > /dev/null
command-windows: curl -sSf http://127.0.0.1:3000 > NIL
build: npm run build
start: npm run start:prod
wait-on: sleep 5
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ $ npm run start
$ npm run start:dev

# production mode
$ npm run build
$ npm run start:prod
```
Loading

0 comments on commit 0420dec

Please sign in to comment.