diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..b076906 --- /dev/null +++ b/.github/workflows/pr.yml @@ -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 + diff --git a/package.json b/package.json index 97b48f5..087ca49 100644 --- a/package.json +++ b/package.json @@ -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" },