Skip to content

Commit

Permalink
Merge pull request #1 from jmlee337/usbdetect
Browse files Browse the repository at this point in the history
usb detect refresh
  • Loading branch information
jmlee337 authored Oct 31, 2023
2 parents 1108222 + 7707e47 commit cbee474
Show file tree
Hide file tree
Showing 12 changed files with 1,642 additions and 113 deletions.
113 changes: 113 additions & 0 deletions .github/workflows/build-test-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Build Test Upload

on: [push, pull_request]

jobs:
macos:
runs-on: macos-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: npm install
run: |
npm install
- name: npm test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run package
npm run lint
npm exec tsc
npm test
- name: upload
uses: actions/upload-artifact@v3
with:
name: installers
path: |
release/build/ReplayManagerForSlippi*.dmg
ubuntu:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install libudev
run: |
sudo apt install -y libudev-dev
- name: npm install
run: |
npm install
- name: npm test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run package
npm run lint
npm exec tsc
npm test
- name: upload
uses: actions/upload-artifact@v3
with:
name: installers
path: |
release/build/ReplayManagerForSlippi*.AppImage
windows:
runs-on: windows-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install libuv
uses: johnwason/vcpkg-action@v5
with:
pkgs: 'libuv'
triplet: 'x64-windows-release'
token: ${{ secrets.GITHUB_TOKEN }}

- name: npm install
run: |
npm install
- name: npm test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run package
npm run lint
npm exec tsc
npm test
- name: upload
uses: actions/upload-artifact@v3
with:
name: installers
path: |
release/build/ReplayManagerForSlippi*.exe
43 changes: 0 additions & 43 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions decs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'detect-usb';
58 changes: 32 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^2.7.6",
"node-gyp": "^9.4.1",
"prettier": "^3.0.3",
"react-refresh": "^0.14.0",
"react-test-renderer": "^18.2.0",
Expand Down
Loading

0 comments on commit cbee474

Please sign in to comment.