Skip to content

Commit 8b6ad98

Browse files
authored
Add initial gh workflow
1 parent 5875213 commit 8b6ad98

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Functionly build and publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Docker
14+
uses: docker/setup-buildx-action@v1
15+
- name: Build and Test with Coverage
16+
run: |
17+
docker run --rm \
18+
-e PROPERTIES="BUILD_ID:${{ github.run_number }}" \
19+
-w "/app" \
20+
-v $PWD:/app \
21+
node:8 bash -c "\
22+
npm i --no-save -q; \
23+
npm run build; \
24+
npm run coverage -- --reporter mocha-junit-reporter; \
25+
chown -R $(id -u):$(id -g) ."

0 commit comments

Comments
 (0)