Skip to content

Commit

Permalink
feat(added new yml file)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Palmqvist <[email protected]>
  • Loading branch information
coolusername244 and PalmN72 committed Oct 17, 2023
1 parent e2f8ff7 commit b3664f2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pr_check_new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run tests on PR - new

on:
pull_request:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.13.0'

- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Stockholm

- name: set npm version
run: npm install -g [email protected]

- name: install node modules
run: cd app/apps/skolplattformen-app-new && npm ci

- name: Run tests
run: cd app/apps/skolplattformen-app-new && npm test
env:
CI: true

- name: Check linting
run: cd app/apps/skolplattformen-app-new && npm run lint
env:
CI: true

0 comments on commit b3664f2

Please sign in to comment.