Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Aug 6, 2023
1 parent e05bdb3 commit 881f6d3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
types:
- synchronize
- opened

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Cache Swapi Data
uses: actions/cache@v3
with:
path: cache/data.json
key: swapi-data
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@
"graphql-relay": "0.10.0"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "^8.46.0",
"isomorphic-fetch": "2.2.1",
"jest": "^29.6.2",
"netlify-cli": "^15.10.0",
"netlify-plugin-cache": "^1.0.3",
"prettier": "^1.18.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
"vitest": "^0.34.1"
},
Expand Down

0 comments on commit 881f6d3

Please sign in to comment.