This commit is contained in:
parent
c397e365dc
commit
9bd5aefd76
2 changed files with 10 additions and 19 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -5,12 +5,13 @@ on:
|
|||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-test:
|
||||
runs-on: [moon, amd64]
|
||||
container:
|
||||
image: node:18
|
||||
# env:
|
||||
# NODE_ENV: development
|
||||
image: harbor.hq.rosti.cz/library/builder:39
|
||||
env:
|
||||
REPO: harbor.hq.rosti.cz
|
||||
USERNAME: robot$rosti+rosti
|
||||
# ports:
|
||||
# - 80
|
||||
# volumes:
|
||||
|
@ -18,6 +19,10 @@ jobs:
|
|||
# options: --cpus 1
|
||||
steps:
|
||||
- name: Check for dockerenv file
|
||||
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
|
||||
run: |
|
||||
echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
|
||||
task build
|
||||
task test
|
||||
|
||||
|
||||
|
||||
|
|
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
name: Image testing
|
||||
|
||||
on:
|
||||
- push
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: testing
|
||||
run: |
|
||||
make build
|
||||
make test
|
Loading…
Reference in a new issue