Skip to content

Commit e311fa8

Browse files
committed
Merge branch 'weapon-convergence' of https://github.com/the-hideout/tarkov-data-api into weapon-convergence
2 parents 1f03086 + 65cd985 commit e311fa8

File tree

6 files changed

+46
-16
lines changed

6 files changed

+46
-16
lines changed

.github/workflows/branch-deploy.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,31 @@ jobs:
1818

1919
steps:
2020

21-
- uses: github/branch-deploy@e0b8fec9f3b1c48ea3dddeedca59af02e4d69a53 # pin@v4.3.0
21+
- uses: github/branch-deploy@v5.1.0
2222
id: branch-deploy
2323
with:
2424
admins: the-hideout/core-contributors
2525
admins_pat: ${{ secrets.BRANCH_DEPLOY_ADMINS_PAT }}
26+
environment_targets: production,development
27+
environment_urls: production|https://api.tarkov.dev/graphql,development|https://dev-api.tarkov.dev/graphql
2628

2729
- name: Checkout
2830
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
29-
uses: actions/checkout@v3 # pin@v3
31+
uses: actions/checkout@v3.3.0
3032
with:
3133
ref: ${{ steps.branch-deploy.outputs.ref }}
3234

3335
- name: Use Node.js 16
3436
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
35-
uses: actions/setup-node@v3 # pin@v3
37+
uses: actions/setup-node@v3.6.0
3638
with:
3739
node-version: 16
40+
cache: npm
3841

3942
- name: Install dependencies
4043
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
4144
run: npm ci
4245

43-
- name: Test
44-
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
45-
env:
46-
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
47-
run: script/test
48-
4946
- name: Publish - Development
5047
if: ${{ steps.branch-deploy.outputs.environment == 'development' &&
5148
steps.branch-deploy.outputs.noop != 'true' &&
@@ -67,7 +64,7 @@ jobs:
6764
The API has been **deployed** to the **development** environment 🚀
6865
6966
- Endpoint: \`dev-api.tarkov.dev\`
70-
- Playground: [dev-api.tarkov.dev/___graphql](https://dev-api.tarkov.dev/___graphql)
67+
- Playground: [dev-api.tarkov.dev/___graphql](https://dev-api.tarkov.dev/graphql)
7168
7269
> Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Workflow: \`${{ github.workflow }}\`;
7370
@@ -91,6 +88,6 @@ jobs:
9188
The API has been **deployed** to the **production** environment 🚀
9289
9390
- Endpoint: \`api.tarkov.dev\`
94-
- Playground: [api.tarkov.dev/___graphql](https://api.tarkov.dev/___graphql)
91+
- Playground: [api.tarkov.dev/___graphql](https://api.tarkov.dev/graphql)
9592
9693
> Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Workflow: \`${{ github.workflow }}\`;

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3 # pin@v3
15+
uses: actions/checkout@v3.3.0
1616

1717
- name: Use Node.js 16
18-
uses: actions/setup-node@v3 # pin@v3
18+
uses: actions/setup-node@v3.6.0
1919
with:
2020
node-version: 16
21+
cache: npm
2122

2223
- name: Publish - Production
2324
uses: cloudflare/wrangler-action@3424d15af26edad39d5276be3cc0cc9ffec22b55 # pin@1.3.0

.github/workflows/new-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515

1616
steps:
1717
# Comment on new PR requests with deployment instructions
18-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3.0.2
18+
- uses: actions/checkout@v3.3.0
1919
- name: comment
20-
uses: GrantBirki/comment@5f428382792637d756694f5e0ca49ba56354125c # pin@v2.0.0
20+
uses: GrantBirki/comment@v2.0.3
2121
continue-on-error: true
2222
with:
2323
file: .github/new-pr-comment.md

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [ main ]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v3.3.0
19+
20+
- name: Use Node.js 16
21+
uses: actions/setup-node@v3.6.0
22+
with:
23+
node-version: 16
24+
cache: npm
25+
26+
- run: npm ci
27+
28+
- name: test
29+
env:
30+
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
31+
run: script/test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ worker/
33
.cargo-ok
44
dist/
55
.env
6+
.vscode/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tarkov API (Escape from Tarkov) 💻
22

3-
[![deploy](https://github.com/the-hideout/tarkov-data-api/actions/workflows/deploy.yml/badge.svg)](https://github.com/the-hideout/tarkov-data-api/actions/workflows/deploy.yml) [![Discord](https://img.shields.io/discord/956236955815907388?color=7388DA&label=Discord)](https://discord.gg/XPAsKGHSzH)
3+
[![deploy](https://github.com/the-hideout/tarkov-data-api/actions/workflows/deploy.yml/badge.svg)](https://github.com/the-hideout/tarkov-data-api/actions/workflows/deploy.yml) [![test](https://github.com/the-hideout/tarkov-api/actions/workflows/test.yml/badge.svg)](https://github.com/the-hideout/tarkov-api/actions/workflows/test.yml) [![Discord](https://img.shields.io/discord/956236955815907388?color=7388DA&label=Discord)](https://discord.gg/XPAsKGHSzH)
44

55
This is the main API for [tarkov.dev](https://tarkov.dev), and was forked from kokarn's Tarkov Tools API.
66

0 commit comments

Comments
 (0)