Skip to content

🤖 Sync org-wide files to upstream repo #93

🤖 Sync org-wide files to upstream repo

🤖 Sync org-wide files to upstream repo #93

Workflow file for this run

# This workflow will do a clean install of the dependencies and run tests across different versions
#
# Replace <track> with the track name
# Replace <image-name> with an image to run the jobs on
# Replace <action to setup tooling> with a github action to setup tooling on the image
# Replace <install dependencies> with a cli command to install the dependencies
# Replace <code-extensions> with file extensions that should trigger the workflow
#
# Requires scripts:
# - scripts/pr-check path/to/changed/file path/to/changed/file
# - scripts/pr path/to/changed/file path/to/changed/file
name: solidity / pr
on: pull_request
jobs:
precheck:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Use Node.js LTS (12.x)
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
with:

Check failure on line 27 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / solidity / pr

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 27, Col: 14): Unexpected value ''
# Here, use the LTS/stable version of the track's tooling, e.g.:
# node-version: 12.x
- name: Install project dependencies
run: yarn
# Replace <code-extensions> with file extensions that should trigger this check. Replace with .* to allow anything.
- name: Run exercism/solidity ci pre-check (stub files, config integrity) for changed exercises
run: |
PULL_REQUEST_URL=$(jq -r ".pull_request.url" "$GITHUB_EVENT_PATH")
curl --url $"${PULL_REQUEST_URL}/files" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | \
jq -c '.[] | select(.status == "added" or .status == "modified") | select(.filename | match("\\.(sol|js|md|json)$")) | .filename' | \
xargs -r bin/pr-check
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
# Here, add all SUPPORTED versions only, e.g.:
version: [10.x, 12.x, 14.x]
# Optionally, add more matrix variables, such as os or arch
steps:
- name: Use Node ${{ matrix.version }}
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
- name: Install project dependencies
run: yarn
# Replace <code-extensions> with file extensions that should trigger running tests. Replace with .* to allow anything.
- name: Run exercism/solidity ci (runs tests) for changed/added exercises
run: |
PULL_REQUEST_URL=$(jq -r ".pull_request.url" "$GITHUB_EVENT_PATH")
curl --url $"${PULL_REQUEST_URL}/files" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | \
jq -c '.[] | select(.status == "added" or .status == "modified") | select(.filename | match("\\.(sol|js|md|json)$")) | .filename' | \
xargs -r bin/pr