Skip to content

Commit 96a13e6

Browse files
authored
Merge pull request #1 from cloudgraphdev/chore/pipeline-test
Pipeline Test
2 parents 77faa19 + d0cad94 commit 96a13e6

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: publish
66
on:
77
push:
88
branches:
9-
- main
109
- alpha
1110
- beta
11+
- main
1212

1313
jobs:
1414
build:
@@ -25,21 +25,21 @@ jobs:
2525
registry-url: "https://registry.npmjs.org"
2626

2727
- name: Get cache directory
28-
id: npm-cache-dir
28+
id: yarn-cache-dir
2929
run: |
30-
echo "::set-output name=dir::$(npm config get cache)"
30+
echo "::set-output name=dir::$(yarn cache dir)"
3131
3232
- name: Restoring cache
3333
uses: actions/cache@v2
34-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
34+
id: yarn-cache # use this to check for `cache-hit` ==> if: steps.yarn-cache.outputs.cache-hit != 'true'
3535
with:
36-
path: ${{ steps.npm-cache-dir.outputs.dir }}
36+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
3737
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
3838
restore-keys: |
3939
${{ runner.os }}-yarn-
4040
4141
- name: Install Packages
42-
run: yarn install --frozen-lockfile --cache-folder .npm --prefer-offline
42+
run: yarn install --frozen-lockfile --prefer-offline
4343

4444
- name: Build
4545
run: yarn prepack

.releaserc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
branches:
3+
- name: alpha
4+
- name: beta
35
- name: main
6+
47
plugins:
58
- "@semantic-release/commit-analyzer"
69
- "@semantic-release/release-notes-generator"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"version": ">0.2"
1919
},
2020
"scripts": {
21-
"build": "yarn prepublish",
21+
"build": "yarn prepack",
2222
"generate-types": "graphql-codegen --config codegen.yml",
2323
"prepare": "npx husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
24-
"prepublish": "rm -rf dist",
24+
"prepack": "rm -rf dist && tsc",
2525
"test": "NODE_ENV=test jest",
2626
"lint": "eslint --config .eslintrc.json --ext .js,.ts ./",
2727
"lint:fix": "eslint --fix --config .eslintrc.json --ext .js,.ts ./",

src/services/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const message = 'Hello, World!';
2+
// eslint-disable-next-line no-console
3+
console.log(message);

test/stub.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
describe('Stub test: ', () => {
2+
const result = true
3+
4+
describe('Always Pass', () => {
5+
test('should return a truthy value ', () => {
6+
expect(result).toBeTruthy()
7+
})
8+
})
9+
})

0 commit comments

Comments
 (0)