mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-26 15:09:53 +03:00
ci: add test step and create PR workflow
This commit is contained in:
parent
aca633720a
commit
8e98c1c63b
4 changed files with 23 additions and 2 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -11,6 +11,8 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
||||||
- name: Build the interface
|
- name: Build the interface
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|
18
.github/workflows/pull_request.yml
vendored
Normal file
18
.github/workflows/pull_request.yml
vendored
Normal 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
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -2,7 +2,7 @@ name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: '*'
|
tags: ['*']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -13,6 +13,8 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
||||||
- name: Build the interface
|
- name: Build the interface
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Major tag
|
- name: Major tag
|
||||||
|
|
|
@ -219,7 +219,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
return stripHttps(url);
|
return stripHttps(url);
|
||||||
},
|
},
|
||||||
notifySnackbar(message, isError) {
|
notifySnackbar(message, isError) {
|
||||||
console.log(message);
|
|
||||||
if (typeof message === 'string') {
|
if (typeof message === 'string') {
|
||||||
this.update({
|
this.update({
|
||||||
snackbarMessage: message,
|
snackbarMessage: message,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue