Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit 6a813a9

Browse files
committed
ci: testing gitlab actions
1 parent 35003a3 commit 6a813a9

File tree

3 files changed

+49
-32
lines changed

3 files changed

+49
-32
lines changed

.github/workflows/master-workflow.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Master Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Installing dependencies
20+
run: yarn install
21+
- name: Building project
22+
run: yarn build && yarn build:copy
23+
- name: Running tests
24+
run: yarn test
25+
- name: Uploading dist
26+
uses: actions/upload-artifact@v1
27+
with:
28+
name: dist
29+
path: dist
30+
31+
release:
32+
needs: build
33+
name: Release
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v1
38+
with:
39+
node-version: 12
40+
- name: Download dist
41+
uses: actions/download-artifact@v1
42+
with:
43+
name: dist
44+
- name: Release
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
run: npx semantic-release --dry-run
49+
working-directory: ./dist

.travis.yml

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"deploy": "yarn build && yarn build:copy && cd dist && yarn publish && cd ..",
3636
"lint": "eslint --fix \"lib/**/*.js\" *.js",
3737
"test": "jest",
38-
"pretest": "yarn build",
3938
"report-coverage": "cat ./coverage/lcov.info | coveralls"
4039
},
4140
"dependencies": {

0 commit comments

Comments
 (0)