Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
# Also trigger on page_build, as well as release created events | |
page_build: | |
release: | |
types: # This configuration does not affect the page_build event above | |
- created | |
jobs: | |
fe-checks: | |
name: Frontend checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
path: go/src/github.com/datastax/pulsar-admin-console | |
- name: Set up node | |
uses: actions/setup-node@master | |
with: | |
node-version: '16' | |
check-latest: true | |
- name: Build vue components | |
run: | | |
cd dashboard | |
npm ci | |
npm install -g @vue/cli | |
npm run build | |
be-checks: | |
name: Backend checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
path: go/src/github.com/datastax/pulsar-admin-console | |
- name: Set up node | |
uses: actions/setup-node@master | |
with: | |
node-version: '16' | |
check-latest: true | |
- name: Run unit tests | |
run: | | |
cd server | |
npm ci | |
npm test | |
docker: | |
name: docker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
path: go/src/github.com/datastax/pulsar-admin-console | |
- name: Install Podman | |
uses: gacts/install-podman@v1 | |
- name: Build Admin Console Docker Image | |
uses: gacts/install-podman@v1 | |
run: | | |
pwd | |
podman manifest create adminconsole | |
podman build --platform linux/amd64,linux/arm64 . --manifest adminconsole |