From 06580d4aa47423e67ead30d696f8250728c5817c Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Tue, 19 Jan 2021 12:51:08 +0100 Subject: [PATCH] ci: migrate to GitHub Actions (#137) --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 18 ------------------ .vscodeignore | 2 +- README.md | 2 +- 4 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..05668fa1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: build + +on: [push, pull_request] + +env: + FORCE_COLOR: 3 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '14.x' + - run: yarn + - run: yarn run prettier-check + - run: yarn run eslint + - run: yarn run build + - name: release + if: github.repository_owner == 'sourcegraph' && github.event_name == 'push' && github.ref == 'refs/heads/master' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} + run: yarn run semantic-release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ecb282b0..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: node_js -node_js: '12' - -env: - global: - - FORCE_COLOR=1 - -cache: yarn - -script: - - yarn run prettier-check - - yarn run eslint - - yarn run build - -deploy: - - provider: script - skip_cleanup: true - script: yarn run semantic-release diff --git a/.vscodeignore b/.vscodeignore index 51cd2596..b2a8e318 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,7 +1,7 @@ .editorconfig +.github/** .gitignore .prettierignore -.travis.yml .vscode-test/** .vscode/** **/*.map diff --git a/README.md b/README.md index 767f84e4..e925031e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Sourcegraph for Visual Studio Code -[![vs marketplace](https://img.shields.io/vscode-marketplace/v/sourcegraph.sourcegraph.svg?label=vs%20marketplace)](https://marketplace.visualstudio.com/items?itemName=sourcegraph.sourcegraph) [![downloads](https://img.shields.io/vscode-marketplace/d/sourcegraph.sourcegraph.svg)](https://marketplace.visualstudio.com/items?itemName=sourcegraph.sourcegraph) [![build](https://travis-ci.com/sourcegraph/sourcegraph-vscode.svg?branch=master)](https://travis-ci.com/sourcegraph/sourcegraph-vscode) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +[![vs marketplace](https://img.shields.io/vscode-marketplace/v/sourcegraph.sourcegraph.svg?label=vs%20marketplace)](https://marketplace.visualstudio.com/items?itemName=sourcegraph.sourcegraph) [![downloads](https://img.shields.io/vscode-marketplace/d/sourcegraph.sourcegraph.svg)](https://marketplace.visualstudio.com/items?itemName=sourcegraph.sourcegraph) [![build](https://img.shields.io/github/workflow/status/sourcegraph/sourcegraph-vscode/build/master)](https://github.com/sourcegraph/sourcegraph-vscode/actions?query=branch%3Amaster+workflow%3Abuild) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) The Sourcegraph extension for VS Code enables you to open and search code on Sourcegraph.com easily and efficiently.