Skip to content

Commit

Permalink
ci(*): move to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 28, 2024
1 parent 30dc429 commit 3b52f1e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 80 deletions.
80 changes: 0 additions & 80 deletions .ci/azure-pipelines.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
push:
branches: ['master']

env:
NODE_VERSION: '18.x'

jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: npm ci

# Run tests with
# - Run in band because appears to run more smoothly (avoids memory issues when running in parallel?)
# - Fifteen (!) minute test timeout
# - Force exit to prevent hanging
- name: Run tests
run: npx jest --coverage --runInBand --testTimeout=900000 --forceExit

release:
runs-on: ubuntu-latest
needs: linux
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Release package
run: |
set -e
npm ci
mkdir -p docs
npx semantic-release
env:
GIT_AUTHOR_NAME: Stencila CI Bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: Stencila CI Bot
GIT_COMMITTER_EMAIL: [email protected]
GITHUB_TOKEN: $(GITHUB_TOKEN)
NPM_TOKEN: $(NPM_TOKEN)

0 comments on commit 3b52f1e

Please sign in to comment.