summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2020-01-17 20:43:29 -0500
committerGitHub <noreply@github.com>2020-01-17 20:43:29 -0500
commit8f645ffb8a090cf900883ca50bba423298c4a4f1 (patch)
treec85a3afd263a192c95509bab13babf56c44b43c1 /.github
parente29e1bf92c4aeed41d4ab4ba7780162aae9f60b8 (diff)
ci: Update CI dependencies (#850)
* ci: Replace setup-ruby with use-ruby-action * ci: Update python version * ci: Update Ruby version * Set ruby action to master * Try installing mercurial earlier in the workflow * Remove mercurial installation * Remove mercurial installation on all OSes * Revert "Remove mercurial installation on all OSes" This reverts commit 0e1a3e7e928198ece34660494980f00102df8c45. * Update hg installation comment * Revert Ruby update * Add caching * Add caching to audit * Update workflow.yml * Only cache during test steps
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/workflow.yml27
1 files changed, 20 insertions, 7 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 459e9f4a2..202e7bf55 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -92,6 +92,23 @@ jobs:
# Checkout the branch being tested
- uses: actions/checkout@v2
+ # Cache files between builds
+ - name: Cache cargo registry
+ uses: actions/cache@v1
+ with:
+ path: ~/.cargo/registry
+ key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
+ - name: Cache cargo index
+ uses: actions/cache@v1
+ with:
+ path: ~/.cargo/git
+ key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
+ - name: Cache cargo build
+ uses: actions/cache@v1
+ with:
+ path: target
+ key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
+
# Install all the required dependencies for testing
- uses: actions-rs/toolchain@v1
with:
@@ -110,14 +127,14 @@ jobs:
go-version: "1.12.1"
# Install Ruby at a fixed version
- - uses: actions/setup-ruby@v1
+ - uses: eregon/use-ruby-action@v1
with:
ruby-version: "2.6.3"
# Install Python at a fixed version
- uses: actions/setup-python@v1
with:
- python-version: "3.7.5"
+ python-version: "3.7.6"
# Install dotnet at a fixed version
- uses: actions/setup-dotnet@v1
@@ -129,16 +146,12 @@ jobs:
with:
php-version: "7.3"
- # Install Mercurial (pre-installed on linux, installed from pip on macos
- # and from choco on windows),
+ # Install Mercurial (pre-installed on Linux and windows)
- name: Install Mercurial (macos)
if: matrix.os == 'macOS-latest'
env:
HGPYTHON3: 1
run: pip install mercurial
- - name: Install Mercurial (windows)
- if: matrix.os == 'windows-latest'
- run: choco install hg
# Install Terraform at a fixed version
- uses: volcano-coffee-company/setup-terraform@v1