Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
javdl committed Jan 9, 2025
1 parent cb6cace commit 40eae9f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 130 deletions.
126 changes: 10 additions & 116 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,8 @@ jobs:
- uses: actions/checkout@v4
- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v9
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v13
with:
name: fashionunited
Expand Down Expand Up @@ -75,15 +68,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v13
with:
name: fashionunited
Expand Down Expand Up @@ -195,15 +181,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v13
with:
name: fashionunited
Expand Down Expand Up @@ -267,15 +246,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v13
with:
name: fashionunited
Expand Down Expand Up @@ -307,90 +279,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Build the flake
run: nix --extra-experimental-features "nix-command flakes" build -L

# browserstack_test:
# name: Browserstack tests
# strategy:
# matrix:
# os: [ubuntu-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: cachix/install-nix-action@v24
# with:
# install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
# nix_path: nixpkgs=channel:nixos-24.11
# extra_nix_config: |
# experimental-features = nix-command flakes

# - uses: cachix/cachix-action@v13
# with:
# name: fashionunited
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

# - name: Build the flake
# run: nix --extra-experimental-features "nix-command flakes" build -L

# - name: Extract wasm files
# run: |
# tar -xf result/*-*.tgz
# mv package pkg

# - name: Set up Python 3.8
# uses: actions/setup-python@v5
# with:
# python-version: 3.8

# - uses: actions/setup-node@v4
# with:
# node-version: 18

# - name: 'Building web application to be tested'
# run: cd browserstack && npm ci

# # https://www.browserstack.com/docs/automate/selenium/github-actions#sample-github-workflow-showing-a-browserstack-test
# - name: 'BrowserStack Env Setup' # Invokes the setup-env action
# uses: browserstack/github-actions/setup-env@master
# with:
# username: ${{ secrets.BROWSERSTACK_USERNAME }}
# access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

# - name: 'BrowserStack Local Tunnel Setup' # Invokes the setup-local action
# uses: browserstack/github-actions/setup-local@master
# with:
# local-testing: start
# local-identifier: random

# - name: 'Run local server to serve browserstack tests'
# run: python3 src/wasm/test/serve.py &

# - name: 'Running test on BrowserStack' # Invokes the actual test script that would run on BrowserStack browsers
# env:
# GIT_COMMIT_SHA: ${{ github.sha }}
# run: |
# cd browserstack && \
# GIT_COMMIT_SHA=$GIT_COMMIT_SHA \
# BROWSERSTACK_USERNAME=$BROWSERSTACK_USERNAME \
# BROWSERSTACK_ACCESS_KEY=$BROWSERSTACK_ACCESS_KEY \
# npm run local

# - name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
# uses: browserstack/github-actions/setup-local@master
# with:
# local-testing: stop
29 changes: 15 additions & 14 deletions .github/workflows/daily-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,30 @@ env:
POLYGON_API_KEY: ${{ secrets.POLYGON_API_KEY }}

jobs:
collect-data:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v9

- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
collect-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v9
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- uses: DeterminateSystems/magic-nix-cache-action@main

- uses: cachix/cachix-action@v13
with:
Expand Down

0 comments on commit 40eae9f

Please sign in to comment.