Skip to content

chore: use dfinity/setup-dfx github action #213

chore: use dfinity/setup-dfx github action

chore: use dfinity/setup-dfx github action #213

name: motoko-send-http-get-example
on:
push:
branches:
- master
pull_request:
paths:
- motoko/send_http_get/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-send-http-get-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-send-http-get-example-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: dfinity/setup-dfx@main
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Send HTTP GET Darwin
run: |
dfx start --background
pushd motoko/send_http_get
make test
popd
motoko-send-http-get-example-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dfinity/setup-dfx@main
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Send HTTP GET Linux
run: |
dfx start --background
pushd motoko/send_http_get
make test
popd