Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test arm64 architecture in CI #495

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/test-on-push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Tests
on:
push:
branches:
- main # Only run on push to main branch
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -40,6 +42,52 @@ jobs:
- name: Lint
run: npm run lint && ./lint.sh

test-arm64:
runs-on: macos-14
steps:

- name: Ensure Apple M1 architecture
run: |
uname -a
if [ "$(uname -m)" = "arm64" ]; then
echo "Detected Apple M1 architecture"
else
echo "Not detected Apple M1 architecture"
exit 1
fi

- name: Check out repository code
uses: actions/checkout@v2

- name: Install and start Docker
run: |
brew install colima docker
docker --version
colima start
for i in {1..30}; do
docker version && break
echo "Waiting for Docker to start..."
sleep 10
done


- name: Build Fablo
run: |
npm install && \
npm run build && \
./fablo-build.sh

- name: Test simple network
run: e2e-network/docker/test-01-simple.sh

- uses: actions/upload-artifact@v4
if: always()
with:
name: test-arm64
path: |
e2e-network/docker/test-01-simple.sh.logs/*
e2e-network/docker/test-01-simple.sh.tmpdir/fablo-target/**/*

# test-k8:
# needs: test-main
# runs-on: ubuntu-latest
Expand Down
Loading