Skip to content

Commit

Permalink
Merge pull request #365 from bannergress/addAutoBlockMergeIfTestFaild
Browse files Browse the repository at this point in the history
feat: run test in pipeline
  • Loading branch information
ewoerner authored Mar 31, 2024
2 parents e2b503d + 0bb0f7b commit 73a72f6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 138 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Vite Tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Bild project
run: npm run build --if-present
137 changes: 0 additions & 137 deletions src/features/banner/reducer.spec.ts

This file was deleted.

5 changes: 4 additions & 1 deletion src/features/place/reducer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ describe('features > place > placeReducer', () => {
const expectedState = {
countries: [{ id: '1' }],
administrativeAreas: {},
allPlaces: { '1': { id: '1' } },
canSearchMore: false,
searchPlaces: [],
}

const action: PlaceActionTypes = {
Expand All @@ -38,7 +41,7 @@ describe('features > place > placeReducer', () => {
}

const expectedState = {
allPlaces: [],
allPlaces: { '1': { id: '1' } },
countries: [],
administrativeAreas: { de: [{ id: '1' }] },
searchPlaces: [],
Expand Down

0 comments on commit 73a72f6

Please sign in to comment.