Skip to content

Commit

Permalink
Fix github action warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Nov 17, 2023
1 parent c5e6721 commit 472cfea
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/alpine_x86_64_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
image: crystallang/crystal:latest-alpine
steps:
- name: Cache shards
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: sqlite
run: apk add --no-cache sqlite-static
- name: Install shards
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gnu_x86_64_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache shards
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Chrome
uses: browser-actions/setup-chrome@latest
- name: Install Chrome driver.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
- name: Install Chrome
uses: browser-actions/setup-chrome@latest
- name: Cache shards
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Install shards
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: windows-2022
steps:
- name: Cache shards
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Install SQLite
Expand Down
10 changes: 3 additions & 7 deletions spec/translater_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ describe "Translater" do
system("./bin/translater").should be_true
end

it "translate C/E use default engine" do
it "translate C/E use default engine", tags: "ci" do
system("./bin/translater '你好,中国!'").should be_true
end

it "translate E/C use default engine" do
system("./bin/translater 'Hello, China!'").should be_true
it "translate E/C use all supported engines", tags: "ci" do
system("./bin/translater -A 'Hello, China!'").should be_true
end

it "translate C/E use youdao" do
Expand All @@ -30,10 +30,6 @@ describe "Translater" do
system("./bin/translater -e baidu,youdao 'Hello, China!'").should be_true
end

it "translate E/C use all supported engines" do
system("./bin/translater -A 'Hello, China!'").should be_true
end

it "should translate multi-line english" do
system(%{./bin/translater "Specify target language, support zh-CN|en for now.
default is translate English to Chinese.
Expand Down

0 comments on commit 472cfea

Please sign in to comment.