Skip to content

Commit

Permalink
fix(test): remove flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 committed Jun 6, 2024
1 parent f629104 commit 08c1292
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 148 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,40 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3

- uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: true
version: nightly

- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-2.1.0-beta3"

- uses: leafo/gh-actions-luarocks@v4

- uses: actions/setup-python@v4
- name: install stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: rustfmt, cargo
- name: install nightly Rust
uses: actions-rs/toolchain@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt, cargo

- uses: actions/setup-node@v3
with:
node-version: 18
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: "3.2"

- name: setup environment
shell: bash
run: bash ./test/setup.sh

- name: formatter test
shell: bash
run: |
source ./test/env.sh
vusted ./test/formatter
- name: linter test
shell: bash
if: always()
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
- [ ] [ormolu](https://hackage.haskell.org/package/ormolu)
- [ ] [pg_format](https://github.com/darold/pgFormatter)
- [x] [prettier](https://github.com/prettier/prettier)
- [x] [prettierd](https://github.com/fsouza/prettierd)
- [ ] [prettierd](https://github.com/fsouza/prettierd)
- [ ] [rubocop](https://github.com/rubocop/rubocop)
- [x] [rustfmt](https://github.com/rust-lang/rustfmt)
- [x] [taplo](https://github.com/tamasfe/taplo)
- [ ] [shfmt](https://github.com/mvdan/sh)
- [x] [stylua](https://github.com/JohnnyMorganz/StyLua)
- [ ] [swiftformat](https://github.com/nicklockwood/SwiftFormat)
- [ ] [swift-format](https://github.com/apple/swift-format)
- [x] [sqlfluff](https://github.com/sqlfluff/sqlfluff) as `sqlfluff format`
- [ ] [sqlfluff](https://github.com/sqlfluff/sqlfluff) as `sqlfluff format`
- [x] [sqlfluff_fix](https://github.com/sqlfluff/sqlfluff) as `sqlfluff fix`
- [x] [sql-formatter](https://github.com/sql-formatter-org/sql-formatter)
- [x] [yapf](https://github.com/google/yapf)
Expand Down
19 changes: 0 additions & 19 deletions test/formatter/prettierd_spec.lua

This file was deleted.

2 changes: 1 addition & 1 deletion test/formatter/rustfmt_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('rustfmt', function()
[[}]],
})
assert.are.same({
[[use std::{collections::HashMap, collections::HashSet};]],
[[use std::collections::{HashMap, HashSet};]],
[[fn main() {]],
[[ let var: usize = 1;]],
[[ println!("{var}");]],
Expand Down
115 changes: 0 additions & 115 deletions test/linter/sqlfluff_spec.lua

This file was deleted.

0 comments on commit 08c1292

Please sign in to comment.