ci: add test step and create PR workflow

This commit is contained in:
Joxit 2023-05-23 05:19:51 +02:00
parent aca633720a
commit 8e98c1c63b
No known key found for this signature in database
GPG Key ID: F526592B8E012263
4 changed files with 23 additions and 2 deletions

View File

@ -11,6 +11,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build the interface
run: npm run build
- name: Set up QEMU

18
.github/workflows/pull_request.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Run tests on PRs and branches
on:
pull_request:
push:
branches-ignore: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build the interface
run: npm run build

View File

@ -2,7 +2,7 @@ name: Release
on:
push:
tags: '*'
tags: ['*']
jobs:
build:
@ -13,6 +13,8 @@ jobs:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build the interface
run: npm run build
- name: Major tag

View File

@ -219,7 +219,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
return stripHttps(url);
},
notifySnackbar(message, isError) {
console.log(message);
if (typeof message === 'string') {
this.update({
snackbarMessage: message,