Skip to content

Commit

Permalink
Add GitHub Actions workflows for testing
Browse files Browse the repository at this point in the history
Three new workflows have been added for GitHub Actions to run client, e2e, and electron tests. They are configured to trigger on push events to alpha, beta, rc, and main branches or on pull requests to those same branches. All workflows run on the latest version of Ubuntu and use Node.js version 18.x.
  • Loading branch information
pixelass committed Feb 21, 2024
1 parent 007b4bd commit d40b68c
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Client Tests

on:
push:
branches: [ alpha, beta, rc, main ]
pull_request:
branches: [ alpha, beta, rc, main ]

jobs:
test-client:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

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 install
- name: Run Client tests
run: npm run test:client
25 changes: 25 additions & 0 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: e2e Tests

on:
push:
branches: [ alpha, beta, rc, main ]
pull_request:
branches: [ alpha, beta, rc, main ]

jobs:
test-e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

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 install
- name: Run e2e tests
run: npm run test:e2e
25 changes: 25 additions & 0 deletions .github/workflows/test-electron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Electron Tests

on:
push:
branches: [ alpha, beta, rc, main ]
pull_request:
branches: [ alpha, beta, rc, main ]

jobs:
test-electron:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

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 install
- name: Run Electron tests
run: npm run test:electron

0 comments on commit d40b68c

Please sign in to comment.