Skip to content
Snippets Groups Projects
Unverified Commit 63f6b8f9 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #1 from FZJ-INM1-BDA/feat/actions

Feat/actions
parents e36f3bec 460aa58e
No related branches found
No related tags found
No related merge requests found
name: Frontend Tests (Karma + Mocha + Chai)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm i
npm test
env:
NODE_ENV: test
\ No newline at end of file
name: Test_Action
on: [push]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: works
run: echo hello world
......@@ -6,6 +6,11 @@ const webpackTest = require('../webpack.test')
const webpackConfig = require('../webpack.dev')
const fullWebpack = merge(webpackTest, webpackConfig)
const singleRun = process.env.NODE_ENV === 'test'
const browsers = process.env.NODE_ENV === 'test'
? ['ChromeHeadless']
: ['Chrome']
module.exports = function(config) {
config.set({
......@@ -62,12 +67,12 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
browsers,
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
singleRun,
// Concurrency level
// how many browser should be started simultaneous
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment