Skip to content

Commit

Permalink
Move lint and flow to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith committed Feb 9, 2022
1 parent 90050e4 commit 0772373
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on: pull_request

name: Generate benchmarks
name: Test

jobs:
prBenchmarks:
Expand All @@ -11,3 +11,29 @@ jobs:
uses: parcel-bundler/parcel-benchmark-action@master
env:
PARCEL_BENCHMARK_APIKEY: ${{ secrets.PARCEL_BENCHMARK_APIKEY }}

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'yarn'
- uses: actions-rs/toolchain@v1
- uses: Swatinem/rust-cache@v1
# use `--frozen-lockfile` to fail immediately if the committed yarn.lock needs updates
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- run: yarn --frozen-lockfile
- run: yarn lint

flow:
name: Type check with Flow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn flow check
4 changes: 0 additions & 4 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ jobs:
displayName: 'Run unit tests'
- script: yarn test:integration-ci
displayName: 'Run integration tests'
- script: yarn flow check
displayName: 'Type check with Flow'
- script: yarn lint
displayName: 'Lint'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: succeededOrFailed()
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stable

0 comments on commit 0772373

Please sign in to comment.