All checks were successful
Testing Example / build-and-test (push) Successful in 1m28s
33 lines
846 B
YAML
33 lines
846 B
YAML
name: Testing Example
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '22.0.x'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build app
|
|
run: npm run build
|
|
|
|
- name: Export version from metadata.json
|
|
run: echo "VERSION=$(cat src/metadata.json | grep '"'"'buildMajor'"'"' | sed 's/.*"buildMajor":\s*//;s/.*"buildMinor":\s*//;s/.*"buildRevision":\s*//;s/.*"buildTag":\s*//;s/[^0-9.]//g')" >> $GITHUB_ENV
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: admin_dashboard-${{ vars.VERSION }}
|
|
path: 'build'
|