Skip to content

Commit 03acd66

Browse files
committed
ci: add GitHub workflows for publishing and testing dataprotector-deserializer
1 parent 6470405 commit 03acd66

File tree

3 files changed

+65
-87
lines changed

3 files changed

+65
-87
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Publish dataprotector-deserializer on npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "dataprotector-deserializer-v*"
7+
8+
jobs:
9+
build-test:
10+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm/init-publish-npm
11+
with:
12+
scope: ''
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: dataprotector-deserializer-default
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
paths:
8+
- 'packages/dataprotector-deserializer/**'
9+
10+
jobs:
11+
build_test_dependency:
12+
name: Build test dependency dataprotector-sdk
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
19+
20+
- name: Build et tests de dataprotector-sdk # Not necessary for the deserializer ?
21+
working-directory: packages/sdk
22+
run: |
23+
npm ci
24+
npm run codegen
25+
npm run build
26+
27+
- name: Install dependencies
28+
working-directory: packages/dataprotector-deserializer
29+
run: |
30+
node -v
31+
npm -v
32+
npm ci
33+
npm run test:prepare
34+
35+
- name: Check format
36+
working-directory: packages/dataprotector-deserializer
37+
run: npm run check-format
38+
39+
- name: Lint
40+
working-directory: packages/dataprotector-deserializer
41+
run: npm run lint
42+
43+
- name: Check types
44+
working-directory: packages/dataprotector-deserializer
45+
run: npm run check-types
46+
47+
- name: Execute tests
48+
working-directory: packages/dataprotector-deserializer
49+
run: npm run test
50+
51+
- name: Build final
52+
working-directory: packages/dataprotector-deserializer
53+
run: npm run build

packages/dataprotector-deserializer/.drone.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)