Skip to content

Commit

Permalink
Merge pull request #34 from BonnierNews/github-actions
Browse files Browse the repository at this point in the history
Github actions
  • Loading branch information
kristofferjansson authored May 10, 2021
2 parents 737fedd + 9403648 commit af07e30
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test-feature:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Start docker containers
run: docker-compose up --build -d postgres

- name: Install dependencies
run: npm install
env:
NODE_ENV: "test"

- name: Run feature tests
run: npm test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit af07e30

Please sign in to comment.