build(deps): bump serve-static and express in /admin-frontend #86
This file contains 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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-go: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Install goveralls | |
run: go install github.com/mattn/goveralls@latest | |
- name: Test | |
run: | | |
ulimit -n 2048 ; go test -v ./... -covermode=count -coverprofile=covprofile.tmp | |
cat covprofile.tmp | grep -v "generated" | grep -v "admin" > covprofile | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=covprofile -service=github | |
build-js: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: 'admin-frontend' | |
strategy: | |
matrix: | |
node-version: [ 14.x, 16.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install deps | |
working-directory: admin-frontend | |
run: npm ci | |
- name: Build admin | |
working-directory: admin-frontend | |
run: npm run build --if-present |