mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-25 22:49:54 +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
|
||||
- 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
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:
|
||||
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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue