-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
2,178 additions
and
1,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
name: "Build" | ||
on: | ||
pull_request: | ||
branches: ['**'] | ||
branches: ["**"] | ||
push: | ||
branches: ['**'] | ||
tags: ['**'] | ||
workflow_dispatch: | ||
inputs: | ||
publishExtension: | ||
description: 'Publish Extension' | ||
required: true | ||
default: false | ||
type: boolean | ||
branches: ["**"] | ||
tags: ["**"] | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
|
@@ -27,51 +20,40 @@ jobs: | |
build: | ||
name: "Build" | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
timeout-minutes: 10 | ||
steps: | ||
|
||
- uses: actions/[email protected] | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: kubukoz | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: Cache sbt | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/local | ||
~/.ivy2/cache | ||
~/.coursier/cache/v1 | ||
~/.cache/coursier/v1 | ||
~/AppData/Local/Coursier/Cache/v1 | ||
~/Library/Caches/Coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
# This step isn't strictly necessary, but separating it means we can inspect its run time more easily. | ||
- name: Setup environment | ||
run: nix develop --command echo Environment ready | ||
|
||
- name: Server tests | ||
run: nix develop --command sbt ci | ||
|
||
- name: VS Code extension tests | ||
run: nix develop --command bash -c 'cd vscode-extension && yarn && SERVER_VERSION=$(cat ../.version) xvfb-run --auto-servernum yarn test' | ||
|
||
- name: Show extension test logs | ||
if: job.status == 'failure' | ||
run: cat vscode-extension/fixture/smithyql-log.txt | tail --lines 1000 | ||
|
||
- name: release | ||
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') | ||
run: nix develop --command sbt ci-release | ||
|
||
- name: release plugin | ||
if: github.event.inputs.publishExtension | ||
run: nix develop --command ./release-plugin.sh | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_TOKEN }} | ||
- uses: actions/[email protected] | ||
|
||
- uses: cachix/install-nix-action@v23 | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: kubukoz | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: Cache sbt | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/local | ||
~/.ivy2/cache | ||
~/.coursier/cache/v1 | ||
~/.cache/coursier/v1 | ||
~/AppData/Local/Coursier/Cache/v1 | ||
~/Library/Caches/Coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
# This step isn't strictly necessary, but separating it means we can inspect its run time more easily. | ||
- name: Setup environment | ||
run: nix develop --command echo Environment ready | ||
|
||
- name: Server tests | ||
run: nix develop --command sbt ci | ||
|
||
- name: VS Code extension tests | ||
run: nix develop --command bash -c 'cd vscode-extension && yarn && SERVER_VERSION=$(cat ../.version) xvfb-run --auto-servernum yarn test' | ||
|
||
- name: Show extension test logs | ||
if: job.status == 'failure' | ||
run: cat vscode-extension/fixture/smithyql-log.txt | tail --lines 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Release plugin" | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: "Release plugin" | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- uses: cachix/install-nix-action@v23 | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: kubukoz | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: release plugin | ||
run: nix develop --command ./release-plugin.sh | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.