Skip to content

Commit f940f81

Browse files
committed
Lock CI Nim ver and update to Nim 1.6.0.
1 parent a1601b4 commit f940f81

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name: CI
44

5-
# Controls when the action will run.
5+
# Controls when the action will run.
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
@@ -21,13 +21,13 @@ jobs:
2121
matrix:
2222
firefox: [ '73.0' ]
2323
include:
24-
- nim-version: 'stable'
24+
- nim-version: '1.6.0'
2525
cache-key: 'stable'
2626
steps:
2727
- uses: actions/checkout@v2
2828
- name: Checkout submodules
2929
run: git submodule update --init --recursive
30-
30+
3131
- name: Setup firefox
3232
uses: browser-actions/setup-firefox@latest
3333
with:
@@ -37,13 +37,13 @@ jobs:
3737
id: get-date
3838
run: echo "::set-output name=date::$(date "+%Y-%m-%d")"
3939
shell: bash
40-
40+
4141
- name: Cache choosenim
4242
uses: actions/cache@v2
4343
with:
4444
path: ~/.choosenim
4545
key: ${{ runner.os }}-choosenim-${{ matrix.cache-key }}
46-
46+
4747
- name: Cache nimble
4848
uses: actions/cache@v2
4949
with:
@@ -58,15 +58,15 @@ jobs:
5858
mkdir geckodriver
5959
tar -xzf geckodriver-v0.29.1-linux64.tar.gz -C geckodriver
6060
export PATH=$PATH:$PWD/geckodriver
61-
61+
6262
- name: Install choosenim
6363
run: |
6464
export CHOOSENIM_CHOOSE_VERSION="${{ matrix.nim-version }}"
6565
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
6666
sh init.sh -y
6767
export PATH=$HOME/.nimble/bin:$PATH
6868
nimble refresh -y
69-
69+
7070
- name: Run tests
7171
run: |
7272
export PATH=$HOME/.nimble/bin:$PATH

src/forum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ template createTFD() =
276276
new(c)
277277
init(c)
278278
c.req = request
279-
if request.cookies.len > 0:
279+
if cookies(request).len > 0:
280280
checkLoggedIn(c)
281281

282282
#[ DB functions. TODO: Move to another module? ]#

0 commit comments

Comments
 (0)