-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.02 KB
/
gh-actions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Rust
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches: [ "gh-actions" ]
pull_request:
branches: [ "gh-actions" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Install
run: |
npm install
dfx start --clean --background
dfx canister create --all
mkdir src/civic_canister_backend/dist
- name: Build
run: dfx build --verbose
- name: Deploy
run: dfx canister install --all && dfx deploy
- name: Run tests
run: cargo test --test integration_tests --verbose
- run: echo "🍏 This job's status is ${{ job.status }}."