Skip to content

Commit

Permalink
fix: wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Dec 11, 2024
1 parent d40d13a commit 25a3917
Showing 1 changed file with 14 additions and 38 deletions.
52 changes: 14 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ name: Test
on:
push:
branches:
- 'master'
- "master"
tags:
- 'v*'
- "v*"
pull_request:
branches:
- 'master'
- "master"

defaults:
run:
Expand All @@ -29,45 +29,21 @@ jobs:
ruby-version: [3.0.0]
node-version: [16]
steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
# uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Set up cache key for gems
uses: actions/cache@v4
- name: Checkout code
uses: actions/checkout@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-use-ruby-${{ hashFiles('**/Gemfile.lock') }}
fetch-depth: 0

- name: Install Ruby dependencies
run: |
bundle config path vendor/bundle
bundle update
bundle install --jobs 4 --retry 3
- name: Set up Node.js ${{ matrix.node-version }}
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get Yarn cache dir
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
node-version: 22

- name: Set up cache key for node_modules
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install bun
uses: oven-sh/setup-bun@v2

- name: Install Node.js dependencies
run: yarn --frozen-lockfile
- name: Install dependencies
run: bun install

- name: Build AMSF
run: grunt build
- name: Test build
run: bun run build

0 comments on commit 25a3917

Please sign in to comment.