Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit df31211

Browse files
twoplustwoonedependabot[bot]jarrodek
authored
Migrate test runner (#12)
* Upgrade: Bump handlebars from 4.1.2 to 4.5.3 Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.5.3) Signed-off-by: dependabot[bot] <support@github.com> * test: migrate test runner, move deployment to GitHub * 3.0.1 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paweł Psztyć <jarrodek@gmail.com>
1 parent 29d4d29 commit df31211

File tree

7 files changed

+5572
-6818
lines changed

7 files changed

+5572
-6818
lines changed

.github/workflows/deployment.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Tests and publishing
2+
env:
3+
FORCE_COLOR: 1
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
- develop
10+
- stage
11+
pull_request:
12+
branches:
13+
- master
14+
- main
15+
- stage
16+
jobs:
17+
test_linux:
18+
name: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-20.04]
23+
# os: [ubuntu-18.04, ubuntu-20.04]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions/setup-node@v1
28+
with:
29+
node-version: 14
30+
- uses: microsoft/playwright-github-action@v1
31+
- uses: actions/cache@v1
32+
with:
33+
path: ~/.npm
34+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
35+
restore-keys: |
36+
${{ runner.os }}-node-
37+
- name: Install dependencies
38+
run: npm ci
39+
- name: Run tests
40+
run: npm test
41+
test_win:
42+
name: "Windows"
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions/setup-node@v1
47+
with:
48+
node-version: 14
49+
- uses: microsoft/playwright-github-action@v1
50+
- uses: actions/cache@v1
51+
with:
52+
path: ~/.npm
53+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
54+
restore-keys: |
55+
${{ runner.os }}-node-
56+
- name: Install dependencies
57+
run: npm ci
58+
- name: Run tests
59+
run: npm test
60+
tag:
61+
name: "Publishing release"
62+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
63+
needs:
64+
- test_linux
65+
- test_win
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Checkout code
69+
uses: actions/checkout@v2
70+
with:
71+
fetch-depth: 0
72+
- uses: actions/setup-node@v2
73+
with:
74+
node-version: '14.x'
75+
registry-url: 'https://registry.npmjs.org'
76+
- uses: actions/cache@v1
77+
with:
78+
path: ~/.npm
79+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
80+
restore-keys: |
81+
${{ runner.os }}-node-
82+
- run: npm install
83+
- name: Read version from package.json
84+
uses: culshaw/read-package-node-version-actions@v1
85+
id: package-node-version
86+
- name: Changelog
87+
uses: scottbrenner/generate-changelog-action@master
88+
id: Changelog
89+
- name: Github Release
90+
id: create_release
91+
uses: actions/create-release@latest
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
with:
95+
tag_name: v${{ steps.package-node-version.outputs.version }}
96+
release_name: v${{ steps.package-node-version.outputs.version }}
97+
body: |
98+
${{ steps.Changelog.outputs.changelog }}
99+
draft: false
100+
prerelease: false
101+
- run: npm publish --access public
102+
env:
103+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

karma.conf.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

karma.sl.config.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)