Skip to content

Commit

Permalink
feat: Remove travis move to gha (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT authored Mar 2, 2021
1 parent c0d7d57 commit 8619ee3
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 38 deletions.
4 changes: 4 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ github:
repo: sentry-wizard
changelogPolicy: simple
preReleaseCommand: bash scripts/craft-pre-release.sh
statusProvider:
name: github
artifactProvider:
name: github
targets:
- name: npm
- name: registry
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: 'Build & Test'
on:
push:
branches:
- master
- release/**
pull_request:

jobs:
job_1:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
path: |
.cache/**
**/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Pack
run: yarn pack
- name: Archive Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/*.tgz
job_2:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
path: |
.cache/**
**/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- run: yarn install
- name: Run Linter
run: yarn lint

job_3:
name: Unit Tests
needs: job_1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
path: |
.cache/**
**/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- run: yarn install
- name: Run Unit Tests
run: yarn test
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
force:
description: Force a release even when there are release-blockers (optional)
required: false
jobs:
release:
runs-on: ubuntu-latest
name: 'Release a new version'
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ docs
.vscode
.travis
.github
.craft.yml
.prettierrc
.eslintrc.js
tsconfig*
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

0 comments on commit 8619ee3

Please sign in to comment.