Skip to content

Commit

Permalink
Merge pull request #151 from line-o/feat/switch-to-gha
Browse files Browse the repository at this point in the history
Switch CI to GitHub actions
  • Loading branch information
wolfgangmm committed Jun 29, 2021
2 parents 6f91d8c + a19a203 commit dbaf2ef
Show file tree
Hide file tree
Showing 9 changed files with 1,154 additions and 2,651 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release npm package

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "14.x"

- name: npm install and build
run:
npm ci

- name: Pull docker image
run: docker pull existdb/existdb:release

- name: Build docker image
run: docker create --name exist-ci -p 8080:8080 -p 8443:8443 existdb/existdb:release

- name: Start docker image
run: docker start exist-ci

- name: Wait for existdb startup
run: sleep 30

- run: npm test
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test node-exist

on:
pull_request:
branches:
- master

push:
branches:
- master

workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10.x, 12.x, 14.x]
docker-tag: [latest, release, 4.7.1]

steps:
- uses: actions/checkout@v2

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

- name: npm install and build
run: npm ci

- name: Pull docker image
run: docker pull existdb/existdb:${{ matrix.docker-tag }}

- name: Build docker image
run: docker create --name exist-ci -p 8080:8080 -p 8443:8443 existdb/existdb:${{ matrix.docker-tag }}

- name: Start docker image
run: docker start exist-ci

- name: Wait for existdb startup
run: sleep 20

- name: npm test
run: npm test
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
]
}
53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

25 changes: 0 additions & 25 deletions appveyor.yml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/setup.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions ci/teardown.ps1

This file was deleted.

Loading

0 comments on commit dbaf2ef

Please sign in to comment.