Skip to content

Commit

Permalink
Merge pull request #2 from klarna-incubator/actions
Browse files Browse the repository at this point in the history
Adds github actions to run tests/builds
  • Loading branch information
katrotz authored Jan 30, 2024
2 parents c4b94a4 + 8540c27 commit bd9615c
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 529 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: main

on:
push:
branches:
- master
- release
tags:
- v*
pull_request:
branches:
- master
- release

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run tests
run: yarn test
- name: Build
run: yarn build
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://registry.npmjs.org/
loglevel=warn
Loading

0 comments on commit bd9615c

Please sign in to comment.