Skip to content

Commit 858ec46

Browse files
committed
feat: add postman.yml to github actions
1 parent a94061e commit 858ec46

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/postman.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'coverage'
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
postman:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set npm token
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
run: |
15+
echo "@linode:registry=https://npm.pkg.github.com/linode" > .npmrc
16+
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
17+
echo '::set-output name=diff::1'
18+
19+
- name: Install Node
20+
run: |
21+
export NVM_DIR="$HOME/.nvm"
22+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
23+
nvm install
24+
nvm use
25+
node -v
26+
npm install
27+
28+
- uses: actions/checkout@v4
29+
with:
30+
repository: linode/apl-core
31+
32+
- name: start core
33+
run: |
34+
cd apl-core
35+
npm run server > /dev/null 2>&1 &
36+
- name: start api
37+
run: |
38+
npm run dev

0 commit comments

Comments
 (0)