Skip to content

Commit

Permalink
Add initial gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
csernokn123 authored Mar 4, 2024
1 parent 5875213 commit 8b6ad98
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Functionly build and publish

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Build and Test with Coverage
run: |
docker run --rm \
-e PROPERTIES="BUILD_ID:${{ github.run_number }}" \
-w "/app" \
-v $PWD:/app \
node:8 bash -c "\
npm i --no-save -q; \
npm run build; \
npm run coverage -- --reporter mocha-junit-reporter; \
chown -R $(id -u):$(id -g) ."

0 comments on commit 8b6ad98

Please sign in to comment.