Skip to content

Improve InMemoryProvider getRange function from O(N^2) to O(N) #98

Improve InMemoryProvider getRange function from O(N^2) to O(N)

Improve InMemoryProvider getRange function from O(N^2) to O(N) #98

Workflow file for this run

# This is a workflow that runs on PR builds.
name: "PR build"
# Controls when the action will run.
on:
# Triggers the workflow on pull request events for the master branch
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
# Sets up Node and an .npmrc file. This is the official Github supported way to set up node.
- uses: actions/setup-node@v2
with:
node-version: "12"
registry-url: "https://registry.npmjs.org"
cache: "yarn"
always-auth: "true"
- name: Install packages
run: yarn --frozen-lockfile
- name: Set Firefox Env Variable
run: export FIREFOX_BIN=$(which firefox)
- name: Set Chrome Env Variable
run: export CHROME_BIN=$(which chrome)
- name: Print environment variables
run: echo "CHROME_BIN = $CHROME_BIN FIREFOX_BIN = $FIREFOX_BIN"
- name: CI BUILD + UT
run: yarn ci-test
- name: Check whether version was bumped in PR
id: actions_project_version_check
uses: "thomastay/[email protected]"
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-to-check: package.json
fail-build-if-not-bumped: false
target-branch: master
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
if: ${{ steps.actions_project_version_check.outputs.semver == 'no-update' }}
with:
skip-tag: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Final check for version bump
uses: "thomastay/[email protected]"
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-to-check: package.json
fail-build-if-not-bumped: true
target-branch: master