code-server/.github/workflows/ci.yml

67 lines
1.8 KiB
YAML
Raw Normal View History

2020-02-14 23:54:52 +00:00
name: ci
2020-02-15 00:46:00 +00:00
on: [push, pull_request, release]
2020-02-14 23:54:52 +00:00
jobs:
2020-02-15 00:46:00 +00:00
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn fmt
uses: ./ci/image
with:
args: yarn && yarn fmt
2020-02-14 23:54:52 +00:00
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2020-02-15 00:46:00 +00:00
- name: Get yarn cache directory path
2020-02-14 23:54:52 +00:00
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
2020-02-15 00:46:00 +00:00
- name: Run yarn lint
2020-02-14 23:54:52 +00:00
uses: ./ci/image
with:
args: yarn && yarn lint
2020-02-15 00:46:00 +00:00
release-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run release.sh
uses: ./ci/image
with:
args: yarn && yarn vscode && ./ci/release.sh